web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Bug in Dynamics List R...
Power Automate
Answered

Bug in Dynamics List Records Action: JSON gets escaped

(0) ShareShare
ReportReport
Posted on by 65

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

Categories:
I have the same question (0)
  • Verified answer
    v-yuazh-msft Profile Picture
    Microsoft Employee on at

    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 Profile Picture
    65 on at

    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

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard