Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Fetch record from lookup field of another lookup field in a record in the MS FLow

(0) ShareShare
ReportReport
Posted on by 93

Hello,

 

I have an existing MS Flow which is having a "List records" action of D365 CRM, which is fetching the records of an entity "QPR". In the next step, I am creating a CSV file using the ODATA query.

 

For example:-

if(empty(item()?['field_name']),'',item()?['field_name'])
 
Now, the problem is that I am not able to access the grand-child lookup record.
 
For example:-
 
There is a Lookup field named "A" in the entity "QPR". And, I want to access the "ABC" field of the Lookup "B" in the Lookup "A" record in the "QPR" entity.
 
Is it possible to get this level of record in MS Flow? How could I achieve it?
  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Fetch record from lookup field of another lookup field in a record in the MS FLow

     

    Hi @Ancy ,

     

    You could refer to the following methods to achieve your needs.

    For example, I want to get the email of each owner in the Account entity. Owner is a lookup column, which comes from the User entity.

     

    • First, define an array variable to store the data needed in the table.
    • Then use Get record to get the corresponding field value in the lookup table, configure lookup column id in Item identifier.
    • Then append the value to be displayed in the table to the array variable.

     

    Image reference:

    169.PNG

    Details in Apply to each:

    170.PNG

    Hope this helps.

     

    Best Regards,

  • manuelstgomes Profile Picture
    6,625 on at
    Re: Fetch record from lookup field of another lookup field in a record in the MS FLow

    Hi @Ancy 

     

    I had the same issue in the past and it's not possible. However you can create a new column in the "father" list that contains the information that you need from the "grand-father". Then you need a Power Automation that updates those fields periodically so that you can use them in your Power Automation.

     

    It's kind of hacky but nested lookups are not possible so it's the only way I found that I could get that information.

     

    Hope this helps you.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1