I'm using a Worfklow which should create a task item and assign a user to the "AssignedTo" field. I'm pretty sure the workflow is alright but the only difference from the REST API code to the workflow, is the string which I'll get when executing the workflow.
So.. let's say the important part of my query should look like:
"AssignedToId": {"results":[9]}
When calling an HTTP web service with a SPD 2013 workflow it will convert my dictionaries into something like:
"AssignedToId":{"results":"[9]"}
The only difference are the quotes ("") surrounding [9]...
Do you have an idea how to remove those quotes or change the workflow to make it work? Removing [ ] for a single user does not work either.
This is my parameters dictionary:
{"__metadata":{"type":"SP.Data.TasksListItem"},"Title":"New Task via REST API","DueDate":"2014-09-26T22:00:00.0000000Z","Body":"Body Part","AssignedToId":{"results":"[9]"}}
Help is much appreciated