cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

For each loop which calls list.asmx webservice for folder names, I want it to append instead of replace folder names

Jump to solution

I have a document library with a bunch of folders which have subfolders, which have subfolders... I'm using nintex workflow and my workflow does this:

 

 

gets the list of folders in the desitantion directory and passes this to a collection variable (areaFolders).

For Each folder name in that collection:

 

 

call the lists.asmx webservice to return the folder names within that folder (works fine), passes these to a collection variable(say, areaStoreFolders)

uses an XML query to process using xpath and store the result in the final collection variable (say, collectionStoreNames).

Here is where I run into the issue... each iteration of the for each loop writes over the previous values for the final collection variable (collectionStoreNames) instead of appending the most recent values of the areaDepotFolders to the other ones already in collectionStoreNames... How do I get it to stop doing this so I have a complete list of store names...

 

 

(I know its doing this because I'm sending a print out of collectionStoreNames to myself in an email).

Labels: (1)
0 Kudos
Reply
1 Reply
Workflow Hero

Re: For each loop which calls list.asmx webservice for folder names, I want it to append instead of replace folder names

Jump to solution

Hi,

 

You can use 'Collection Operation' action. This action gives you a lot of option around collection variables. Add, Apend, remove...

 

Thanks

0 Kudos
Reply