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 Automate - Building Flows
Answered

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
 
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,600 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard