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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to get related entities using Flow

(0) ShareShare
ReportReport
Posted on by 90

Hello,

Im trying to use Flow to get related entities, im using the expand query to get at a few related entities.

I've been following this short example on this blog https://dynamicsbackpage.wordpress.com/2019/12/27/using-expand-query-in-power-automate-with-cds/

I am unable to get my related entities to show up in the dynamic content pane.

Here is my expand query

parentaccountid($select=name,accountnumber),parentcontactid($select=businesscard),owningbusinessunit($select=businessunitid)

pastedimage1592574326981v1.png

when i search for account number i dont see it in the dynamic content pane

pastedimage1592574152682v2.png

Would someone be able to help?

Thanks!

I have the same question (0)
  • Verified answer
    Linn Zaw Win Profile Picture
    3,407 on at

    You are using the different CDS connector. You are supposed to use the Common Data Service (current environment) connector to see the related entities to show up in the dynamic content pane.

    pastedimage1592619657265v1.png

    This is the comparison of the dynamic content from the standard CDS connector and the CDS (current environment) connector with the expand query for parent account number.

    pastedimage1592619790696v2.png

    For any reason, if you need to use the standard CDS connector (e.g. cross-environment access), use the Parse JSON action to get the dynamic value from JSON object. You can find out more details in my blog.

    http://linnzawwin.blogspot.com/2019/12/power-automate-list-records-use-expand.html

  • Ainsley Profile Picture
    90 on at

    Thanks for the help! This approached worked for me when I was trying a many to one relationship. But when tried the expand query on a one to many relationship i dont see of the columns, would you know how i can see them?

  • Verified answer
    Linn Zaw Win Profile Picture
    3,407 on at

    For one to many relationships, you will need to use Parse JSON action.

    http://linnzawwin.blogspot.com/2019/12/power-automate-list-records-use-expand.html#getsampledata

    In the example below,

    contact_customer_accounts($select=fullname)

    1. List the Account Records with related Contacts (using the following expand query above)
    2. Parse JSON
    3. Loop the Account list from JSON body
    4. Loop the Contact list for each account
    5. Get the Full Name of the child Contact records of the Account

    pastedimage1592860141768v1.png

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

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 174

#2
ManoVerse Profile Picture

ManoVerse 58 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans