Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 12-Oct-14 2:30am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900