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 / Fetch record from look...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 112

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?
Categories:
I have the same question (0)
  • manuelstgomes Profile Picture
    6,625 on at

    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

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    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,

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard