Question

I am creating a Call HTTP Web service in SharePoint Designer 2013 and looking to create a index variable but don't know how can I ?

Is the local variable and the index variable same?

Was it helpful?

Solution

Follow below steps:

  1. Create a new workflow variable (say indexloop).
  2. Set its value to 0.
  3. Add loop until the indexloop is less than the number of results returned from REST API.

Check below link for detailed explanation and images:

SharePoint Designer 2013 Workflows and GET REST API

Documentation:

Working with Web Services in SharePoint Workflows using SharePoint Designer 2013.

Additional references:

  1. Looping on List Items in SharePoint Designer Workflow 2013.
  2. SharePoint 2013: Designer Workflow To Iterate Through REST API Results Using Loop
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top