Skip to main content
Best answer

How to repeat an action dependant on a variable from the data

  • September 1, 2020
  • 3 replies
  • 187 views

Hi,

I am linking WooCommerce with Salesforce

I want to add a number of opportunities to Salesforce dependant on the variable that comes in from the data.

e.g. if the variable = 3, so I want to create 3 opportunities in Salesforce

Looking forward to some help.

Thank you,

 

Best answer by AndrewJDavison

Hi @NewChabu 

Not sure if you ever got this resolved. But I wrote a guide to looping zaps you might find useful.

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • September 1, 2020

Option 1: If you know there is a MAX number for that variable then you could setup the Zap to have filter steps to only continue on if the variable value number is greater than the filter. (e.g. IF 1, THEN continue; IF 2, THEN continue, and so on)

Option 2: ADVANCED - Create a looping Zap which involves Webhooks, filters, and custom Code.


  • Author
  • Beginner
  • September 2, 2020

For option 2, how do I create a looping Zap?

Thank you!


AndrewJDavison
Forum|alt.badge.img+11
  • Zapier Solution Partner
  • Answer
  • October 27, 2020

Hi @NewChabu 

Not sure if you ever got this resolved. But I wrote a guide to looping zaps you might find useful.