Question

My goal is to use an SPD workflow that uses the REST API to copy a list item to another list when it gets created in the source list. I can get an item copied when the result item is specified in the Get statement d/results(0)/Title, but that only copies the first item in the list ... how do I define the result (d/results) to not be tied to a specific result item so that each list item created is copied with Title?

enter image description here

Was it helpful?

Solution

First set one workflow variable containing Current Item ID

enter image description here

Then use this workflow variable to call REST query for example

http://server/_api/web/lists/GetByTitle('List Title')/items?$filter=ID eq <Workflow Variable>

So it always return current created item..

Check and comment if you have any query...

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top