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

Notifications

Announcements

Community site session details

Community site session details

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard