cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SimonNie
Level: Powered On

Bug in Dynamics List Records Action: JSON gets escaped

Hi there,

 

When trying to fetch Data from Dynamics CRM Online, Flow seems to do something unexpected.

 

I want to get a list of accounts from Dynamics CRM Online and the fullname of the owner oft that account. So I use the List Records Action and enter "owninguser($select=fullname)" into the Expand query property.

 

Flow.JPGh
Flow escaped JSON.JPG

 

 

How can i fix that?

 

Greetings Simon

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Bug in Dynamics List Records Action: JSON gets escaped

Hi @SimonNie,

 

Please take a try to add an "Apply to each" action and a Compose action in your flow, and choose the "fullname" dynamic content of the "List Records" action in the Compose action as my screenshot:

Capture.PNG 

 

Best regards,

Alice

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Bug in Dynamics List Records Action: JSON gets escaped

Hi @SimonNie,

 

Please take a try to add an "Apply to each" action and a Compose action in your flow, and choose the "fullname" dynamic content of the "List Records" action in the Compose action as my screenshot:

Capture.PNG 

 

Best regards,

Alice

View solution in original post

SimonNie
Level: Powered On

Re: Bug in Dynamics List Records Action: JSON gets escaped

Thanks @v-yuazh-msft Alice for the reply!

 

 

That does not work, because fullname is not available in the dynamic content. That is because the fullname of the owner is "joined" with the "Expand Query" parameter of the "List Records" Action.

 

To illustrate why I think it is a bug, please try the following sample:

1.) Create an account in Dynamics CRM.

2.) Create a second account and make the first account the parent account

3.) Create a Flow and use Use List Records to get accounts with parent accounts and parent systemuser by using Expand Query parameter:

List Record Settings

 4.) Test your Flow

List Record Test Output

 As you can clearly see: Flow correctly parses parentaccountid as an object, but does not do it to the owninguser. Owninguser becomes an escaped string instead of an object. My guess is, that this is because owningiser is splitted to owninguser, owningteam and owningorganization in the background.

 

Anyhow, thanks to your reply I was able to do it with a workaround by using Apply To Each Action. But before your Compose Action I had to do Get Record for all the linked Entities I want to get information from.

 

So instead of using "Expand Query" on the List Record, I get the related Entity afterwards in the Apply To Each.

 

Workaround

So my problem is solved, thanks for the assistance.

But maybe you want to double check the List Control Action anyway, because its not really working as expected.

 

All the best,

 

Simon

 

 

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,557)