Question

How to increase by 1 every time a Zap is triggered?

  • 6 December 2021
  • 4 replies
  • 150 views

I have to create a complex lead distribution flow and I’m stuck in two steps of the Zap. 

The flow is: 

  1. Zap triggers when a Facebook Lead Ad is created. 
  2. JS Script matches the lead with a cluster of partners separated by geolocation.
  3. Zap must search and return the partner in the cluster that has received the lowest volume of leads. 
  4. Zap must increase by 1 the leads received by this partner.
  5. Zap must create a new lead assigned to this partner in salesforce. 

I am having a hard time to build steps 3 and 4 in Zapier. Does anyone have any idea how to do this? 


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

4 replies

Userlevel 7
Badge +14

Hi @r.oliveira 

Try using the Storage app to increment the value (+1) for the defined key

 

Userlevel 3
Badge +4

Hi @r.oliveira ! Could you describe step 3 a bit more?

Hi @mzsadiek! Sure! 

So in step 3 the cluster will be already selected. I need to distribute the leads evenly between the partners of this specific cluster. What I thought to do was to find the partner that receiver the lowest volume of leads and select them to receive leads until the moment that they are even in volume of leads with the other partners. Does that make sense? lol 

If you have another logic to build, I would love to read it! 

Hi @r.oliveira 

Try using the Storage app to increment the value (+1) for the defined key

 

Hi @Troy Tessalone! This might be a solution for me!! Thanks a lot for your suggestion! I’ll study if this can solve my issue!! :)