Best answer

Avoiding loops

  • 12 January 2021
  • 2 replies
  • 151 views

Userlevel 3
Badge +3

I created a Zap that looks for new/updated module entries in Zoho CRM and adds some more values in several fields of those entries. But the problem is that it generates a loop. 

Trigger:
New/Updated Module Entry in Zoho CRM

1st Action: 
Find Module Entry in Zoho CRM

2nd Action: 
Formatter: Perfoming a math calculation

3rd Action: 
Update (the same) Module Entry in Zoho CRM and add the math calculation to some fields.

 

The problem is that it always creates an updated entry and this results in a loop. 

How can I avoid this and let the zap only run once or twice?

 

Thanks for help.

icon

Best answer by michael291 12 January 2021, 14:22

View original

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

2 replies

Userlevel 3
Badge +3

I did solve the problem by doing the following procedure: 

Trigger:
New/Updated Module Entry in Zoho CRM

Filter: 
Only run zap if field “History” does not contain the value “updated”

1st Action: 
Find Module Entry in Zoho CRM

2nd Action: 
Formatter: Perfoming a math calculation

3rd Action: 
Update (the same) Module Entry in Zoho CRM and add the math calculation to some fields.
This action adds also a value “updated” to the field “History” (which is added in the filter before the 1st action above)

 

Works perfectly now. 

Userlevel 7
Badge +8

Thanks for sharing how you solved this @michael291 !