Skip to main content
Best answer

Avoiding loops

  • January 12, 2021
  • 2 replies
  • 301 views

michael291
Forum|alt.badge.img+4

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.

Best answer by michael291

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. 

View original
Did this topic help you find an answer to your question?
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

michael291
Forum|alt.badge.img+4
  • Author
  • Builder
  • 74 replies
  • Answer
  • January 12, 2021

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. 


Liz_Roberts
Forum|alt.badge.img+8
  • Zapier Staff
  • 1366 replies
  • January 12, 2021

Thanks for sharing how you solved this @michael291 !