cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

CDS Condition of Get Record failing with "Action '' failed"

I have a flow which has to be manually triggered from Dynamics CRM. While I've tried to set trigger conditions to only run under certain circumstances, those haven't worked, so I've been trying to use a condition. Here's the setup:

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper II
Helper II

Re: CDS Condition of Get Record failing with "Action '' failed"

I've been able to resolve the issue. While the option set records needed to be checked for 'empty(entity reference)', Asset needed to be checked against 'null'. Here's the working Condition statement:

image.png

 

Thanks @ManishJain  and @v-alzhan-msft for the guidance.

View solution in original post

13 REPLIES 13
Highlighted
Solution Specialist
Solution Specialist

Re: CDS Condition of Get Record failing with "Action '' failed"

Hi @eauerbach ,

 

Can you please share your flow screenshots to help us update you ?

 

Thanks

Highlighted
Helper II
Helper II

Re: CDS Condition of Get Record failing with "Action '' failed"

Sorry @ManishJain ; there were in the original post but apparently got removed when I posted. Here's the flow:

image.png

And the error message:

image.png

Highlighted
Community Support
Community Support

Re: CDS Condition of Get Record failing with "Action '' failed"

Hi @eauerbach ,

 

Please select the same environment in the trigger and the get record action.

 

And in the Condition to check if a column is equal to null, you should compare if the expression  "empty(column dynamic content)" is equal true.

 

Best regards,

Alice   

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper II
Helper II

Re: CDS Condition of Get Record failing with "Action '' failed"

Thanks for the guidance, @v-alzhan-msft. I'll try that out.

 

Why am I unable to select 'Current' for the 'When a record is selected' step? Only 'Default' is available.

image.png

Highlighted
Solution Specialist
Solution Specialist

Re: CDS Condition of Get Record failing with "Action '' failed"

Hi @eauerbach ,

 

This action is only available in CDS connector and that is the reason you are seeing this.

 

Thanks

Highlighted
Helper II
Helper II

Re: CDS Condition of Get Record failing with "Action '' failed"

@ManishJain so can this not be done? If the environments selected need to be the same, but they selections aren't the same, how can I complete this action?

Highlighted
Solution Specialist
Solution Specialist

Re: CDS Condition of Get Record failing with "Action '' failed"

Hi @eauerbach ,

 

Can you please add Compose Action after when a record is selected and add Opportunity in that input . You do not need to get the same record via another call . This is to avoid confusion while you are selecting values in your conditions step . 

 

 

Thanks

Highlighted
Solution Specialist
Solution Specialist

Re: CDS Condition of Get Record failing with "Action '' failed"

Hi @eauerbach ,

 

Default states the current environment where your flow is residing. If you deploy it to UAT / Prod it will point to respective environment. 

 

Thanks

Highlighted
Helper II
Helper II

Re: CDS Condition of Get Record failing with "Action '' failed"

Hi @ManishJain ,

 

I've removed the Get Record call and inserted the Compose action. I presume I should be incorporating the Compose into the condition; how would that look?

image.png

Highlighted
Community Support
Community Support

Re: CDS Condition of Get Record failing with "Action '' failed"

Hi @eauerbach ,

 

In the Condition to check if a column is equal to null, you should compare if the expression  "empty(column dynamic content)" is equal true.

 

Best regards,

Alice   

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Highlighted
Helper II
Helper II

Re: CDS Condition of Get Record failing with "Action '' failed"

Hi @ManishJain  and @v-alzhan-msft ,

 

I've attempted to make the recommended changes (switching null to empty(entity), inserting compose action) but am still unable to get the flow to run without error. What other changes can I attempt?

 

 

Highlighted
Solution Specialist
Solution Specialist

Re: CDS Condition of Get Record failing with "Action '' failed"

Hi @eauerbach ,

 

Can you please share screenshot where you are getting error and error description.

 

Thanks

Highlighted
Helper II
Helper II

Re: CDS Condition of Get Record failing with "Action '' failed"

I've been able to resolve the issue. While the option set records needed to be checked for 'empty(entity reference)', Asset needed to be checked against 'null'. Here's the working Condition statement:

image.png

 

Thanks @ManishJain  and @v-alzhan-msft for the guidance.

View solution in original post

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (3,574)