Skip to main content
Best answer

Error with Updated Opportunity (Salesforce) trigger

  • October 26, 2021
  • 4 replies
  • 470 views

Forum|alt.badge.img+1

Hello,

 

I’ve set up a zap that triggers only when an Opportunity is updated to ‘Closed Won’, and then the Opportunity must pass a filter before the zap can proceed. However, there were old ‘Closed Won’ opportunities that triggered the zap, even though there had been no update made on these old opportunities. I wondered what in the trigger setup that went wrong. 

Below is the trigger setup screenshot:



​​​​​

 

Below is the filter in the next step:

 

Appreciate if I could get some help to review the zap.

Best answer by Troy Tessalone

@ASAoperations

Yes, that should limit the Zap to only trigger when the Stage is updated to Closed Won.
TIP: When in doubt, test it out.

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

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • October 26, 2021

Hi @ASAoperations

Make sure you’re using the newer version of the Salesforce Zap app.

 

Then, try using this Zap trigger instead: Salesforce - Updated Field on Record

 

One reason the Zap may have triggered for “old” Opportunities, is because there can be sub-processes on the Salesforce side that may update an Opportunity when other things happen in Salesforce. (e.g. related Contact updated)

[Check the Opportunity history log in Salesforce for context.]


With the way you currently have the Zap trigger, it will fire anytime there is an update for Opportunities in the Stage = Closed Won, not just when they enter that Stage.

 


Forum|alt.badge.img+1
  • Author
  • Beginner
  • October 26, 2021

Thanks @Troy Tessalone 

Since the error happened, I have updated my zap to use Salesforce, instead of Salesforce (Legacy) .

The new trigger is as below:

Would this guarantee that the zap only fires when the opportunity is updated?

 

Best,

Jaimie


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • October 26, 2021

@ASAoperations

Yes, that should limit the Zap to only trigger when the Stage is updated to Closed Won.
TIP: When in doubt, test it out.


Forum|alt.badge.img+1
  • Author
  • Beginner
  • October 26, 2021

Thanks again @Troy Tessalone !

 

Regards,

Jaimie