web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Detect error alerts fr...
Power Automate
Unanswered

Detect error alerts from Salesforce when creating accounts

(0) ShareShare
ReportReport
Posted on by 38

Hi,

 

I currently have a Flow that grabs accounts from Dynamics CRM and inserts to Salesforce. When it attempts to insert to Salesforce, there is a matching rule configured in Salesforce that checks for different criteria to determine whether the account is a duplicate or not. If it is, the account won't be inserted and Salesforce returns the following:

{
  "status"400,
  "message""Salesforce failed to complete task: Message: Duplicate Alert\r\nclientRequestId: fb141ec7-c5b4-4a2d-9371-18e3f30339e4",
  "error"null,
  "source""Salesforce.Common",
  "errors": []
}
 
The flow would then stop executing, even though there are additional accounts to process. I was wondering if there's a way to make Flow detect this error, send me an email and then continue processing? (e.g. it would bypass this account).
 
Sincerely,
 
Jason
 
Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,856 Most Valuable Professional on at
    Re: Detect error alerts from Salesforce when creating accounts

    Hi @JasonYeung 

     

    Yes you can catch error handling in Power Automate. Please my blog which explains a similar scenario

     

    Power Automate – How to find a folder exists (Dynamic) in SharePoint? | @mydevexperience #Flownaut Super User III (@abm) (wordpress.com)

     

    Here is another link 

     

    Try-Catch pattern in Microsoft Flow • Tomasz Poszytek, Business Applications MVP

     

    Thanks

  • Jason Yeung Profile Picture
    38 on at
    Re: Detect error alerts from Salesforce when creating accounts

    @abm,

     

    Thanks for your help!

     

    Sincerely,

     

    Jason

     

  • askondo Profile Picture
    on at
    Re: Detect error alerts from Salesforce when creating accounts

    @abm Thanks for always keeping the forum active.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard