Skip to main content
Best answer

How do I add a step that listens for a zap error in a previous step?

  • September 18, 2024
  • 3 replies
  • 55 views

I get this error (Error message: Could not create record of the "Lead" ) on my action creating a Salesforce lead a lot, due to certain fields not being populated, or being populated incorrectly based on my companies Salesforce validation rules. During that action of creating the lead, I add the lead being created to a campaign in Salesforce as well. Even if the lead can’t be created, I still want to add the new prospect to a campaign. How do I go about building that zap so even if that error occurs and it can’t create a lead, I still have it set up where the zap can add the prospect to a salesforce campaign? I believe I just need an action that will listen for that error message and then filer down a path if the error occurs. Then, from there just add prospect to campaign. My question is what is that action that will listen for that error? 

Best answer by SamB

Hi @Mcadwell 👋

An error handler will output a Error Message field that contains the error message - see: Use error messages in later steps. So then, you can use a filter or paths to check that the field contains a specific kind of error message and run actions accordingly. 

Hope that helps to get you pointed in the right direction. If you run into any issues or have further questions just let us know! 🙂

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 18, 2024

  • Author
  • Beginner
  • September 20, 2024

So thinking about this. I need an action that listens for the specific Zap error, not just any error.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • Answer
  • September 23, 2024

Hi @Mcadwell 👋

An error handler will output a Error Message field that contains the error message - see: Use error messages in later steps. So then, you can use a filter or paths to check that the field contains a specific kind of error message and run actions accordingly. 

Hope that helps to get you pointed in the right direction. If you run into any issues or have further questions just let us know! 🙂