cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JasonYeung
Frequent Visitor

"configure run after" setting seems to be ignored in parallel action

Hi,

I have a flow which attempts to create a record in Salesforce. Salesforce has some validation to check for duplicates and will reject attempts to create records that are duplicates. I wanted to keep track of which ones were rejected and which ones were successfully created by saving the emails in an array varable. Below is what I have currently setup:

Flow_1.JPG

 

After the attempt to create record, it should go to the left if successful and right if not. In the Append to array variable actions I have setup the "run after" settings to the following:

Flow_2.JPG

When I tested the flow, I got an error message which indicates:

ActionConditionFailed. The execution of template action 'Append_to_array_variable_-_error_create' is skipped: the 'runAfter' condition for action 'Create_record' is not satisfied. Expected status values 'Failed, Skipped, TimedOut' and actual value 'Succeeded'.

 

Flow_3.JPG

 

It seems that it's going to execute the right action, even though it the condition is "Succeeded", but the right action should only be executed if it's the other conditions. I was wondering how do I make it always go left if it's "Succeeded"?

 

Sincerely,

 

Jason

 

4 REPLIES 4
PrasadAthalye
Community Champion
Community Champion

Based on the screenshot, Left Side actions will only be executed if the Salesforce action succeeds. In this case, it did succeed so the left portion was executed. The message is saying that right side action is skipped since it did not meet the condition of execution. This is expected behavior,

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Hi @PrasadAthalye ,

 

Thanks for your help. I realized there was something I forgot to mention. I'm looping through a bunch of accounts from Dynamics CRM and trying to insert each one to Salesforce. The screenshot above only shows the inserting to Salesforce part. But this is within the loop.

 

As Salesforce has some logic that rejects duplicate accounts, after the loop completes, I want to be able to identify which one was created successfully and which one is rejected. There is some code after and outside the loop which parses the JSON file and generates an email of which ones were created and which ones were rejected.

 

What currently ends up happening is that when I see this error, it stops the loop. So it doesn't send the email to me. I don't want the loop to stop, I want it to continue for all the accounts.

 

Sincerely,

 

Jason

 

VictorIvanidze
Community Champion
Community Champion

Hi @JasonYeung ,  please show the whole flow.

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.
JasonYeung
Frequent Visitor

@VictorIvanidze ,

 

Here's the entire flow. The part that I initially showed is in the "Apply to each record from CRM" loop.

EntireFlow.JPG

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,930)