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

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

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

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 41 members 4,095 guests
Please welcome our newest community members: