0

Any ideas on how I can Loop through list A to get/set variables, one being a list name. Then using those variables, loop through other lists on the site. Basically a nested loop.

Problem is I can't specify another list using the variable which is what I am trying to do. The workflow is built on list A.

  • Is this workflow meant to be run when on a single list item? Also, does list A contain a lookup to other lists on the site? – MickB Oct 6 '15 at 21:29
  • Yes list A is a list of the other lists I need to loop through. I want to get the names of the lists that need to be updated from List A then loop through each one of those lists to make edits. I have been looking at a couple of links as possible solution: wonderlaura.com/Lists/Posts/Post.aspx?ID=224 and weblogs.asp.net/ricardoperes/… But was hoping I could find someone who has done something like this. – Moe Oct 7 '15 at 16:42
  • Your first call will be to get the names of the lists. Something like http://site/_api/_web/lists/GetByTitle('ListA')?$select=ListNameColumn. I think your issue will be when you update the other lists. Since you can only use the "Update List Item" action if you know the list you are updating. You may have to make another web service call with POST to make the necessary edits. – MickB Oct 7 '15 at 16:52
  • try This Link hope it will be helpfull to you – Madhav Dec 2 '16 at 12:25
1

You can use the Call Web Service action in SharePoint Designer 2013 Workflows. In there you can get or post almost anything you want for the specified list.

Also multiple calls are possible with different lists. Be sure to set a own variable for each list.

Here two starting points:

  1. How to use call web service action in SharePoint2013 workflow
  2. CALLING THE SHAREPOINT 2013 REST API FROM A SHAREPOINT DESIGNER WORKFLOW

If you need more help, please give us some more information, what you want to do exactly, maybe someone can give you more information.

  • Thanks! Yes this is what I am finding as the recommended option. I will give this a shot. – Moe Oct 7 '15 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.