Skip to main content

Hello, 

 

I am having an issue with a loop. The first part of the zap is working and the last step is working if I test it but if I run the whole zap it doesnt create the last folder. 

 

What date should be going into the loop to do so. The order of the Zap is as follows. 

  1. Main forlder is created with Salesforce names
  2. Sub folder should be created with name 1) Test. 

 

This is the data from the first Sharepoint folder step

 

Hi! It’s not clear to me why you’re using a Looping here. Do you have a list of data from Salesforce for which you’d like to repeat the same action? If so please feel free to share another screenshot.

 

Otherwise if you simply need to create 1 subfolder, or if it’s going to be the same number of subfolders everytime, my recommendation is just to remove the Looping step and instert your first folder’s “Unique ID” in the parent folder field.

 

If this corresponds to what you’re trying to achieve, but still need the loop for subsequent steps, just drag this subfolder step before the Looping step.

 

Hopefully I understood you well but please tell me if I’m missing something :)


Thanks ​@escalateur.com  

 

I will eventually have 8 sub folders in the main folder. The first folder is created when the salesforce opportunity is created. We then want the numerous sub folders to go into the main folder. 


Thanks for the precision! If these 8 subfolders are always going to follow the same structure for each Salesforce opportunity, I’d recommend to simply add 8 more “Create Folder” blocks, making sure that their path leads to inside of the main folder.

 

If you still want to try it through looping, in “Values to Loop” insert something like “subfolders_names” at the left, and a list of names at the right like: designs,invoices,feedback,internal,deliveries…

 

Then test the Looping action and you should find a dynamic value to map afterwards, usually showing the first item of the list (“Subfolders Names: designs”)


Hi ​@PTNR 

Help links for using Looping in Zaps: https://zapier.com/apps/looping/integrations#help

 

In the Looping step, for the section: Values to Loop

For each pair (left/right) it needs a key/value.

  • On the left side set: Folder
  • On the right side set: X,Y,Z

For the Text Delimiter field, set this value: ,

Just a comma.

 

Then in the action step after the Looping step, map this variable: Folder

 

 

 


@escalateur.com when I try to do that I am getting this error. Again the first part of the zap is working but not the second folder. 

 

 


@PTNR 

Click field labels that are underlined to see tooltips with more info.

From experience, SharePoint can be a bit tricky with the expected values for fields. (e.g. Site, Parent Folder)