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

Pull Lookup Value

(0) ShareShare
ReportReport
Posted on by 278

I am attempting to pull data from an Entity create (create a csv report for one of my parameters, which is a lookup value, I would like to display this value in the report, but instead of the value I am given a long string of letters and numbers.  How can I pull the value that is display in the entity?

Categories:
I have the same question (0)
  • JatinSanghvi Profile Picture
    Microsoft Employee on at

    @duncant Can you add more details to the question? Which connector and trigger did you select in the Flow? An example of what you expect and instead receive along with a screenshot will help us understand the issue and assist you.

  • duncant Profile Picture
    278 on at

    I am using CDS as my connector.  

     

    If you see in the image below, you will notice that the _crd0c_cruiseid_value gives a long string, instead of the auto-number value setup when I created the entity.  I would like to get the ID as well as the name or title of the value. 

     

    The csv should be seen as followed:

    PassengerName,CruiseID,Age,CruiseTypeID
    Andy,0001,16, 4-day

    Wilma, 0002, 36, 5-day

    Ginger, 0003, 54, 7-day

    Jewel, 0004, 45, 4-day

      

    lookup value.PNG

     

  • JatinSanghvi Profile Picture
    Microsoft Employee on at

    @duncant , what values of 'crd0c_cruiseid' attribute do you see for those entities on the CDS application? I suspect this to be a problem with defining the custom entity/attribute within CDS. You should be able to create a new entity directly on CDS to confirm.

    As far as know, the entity attribute that is used as primary key is always a GUID in CDS (I may be wrong). Are you sure that the 'auto-number' property is set on the 'crd0c_cruiseid' attribute and not on some different one?

  • Verified answer
    LeeHarris Profile Picture
    1,026 on at

    Hi @duncant 

    In order to retrieve the values you want from the Cruise entity you will need to fetch them using the ID that you already have access to. You can do this by inserting a new Get Record action (CDS Connector) into your Flow and setting the Item Identifier value to the Dynamic Property that contains the ID. The output of this Get Record action will provide you with the values you require which you will then need to add into your CSV file.

    Alternatively, you may be able to expand your initial Query to return the fields required from the related entity. More information on expanding queries can be found here https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/retrieve-related-entities-query

     

     

  • duncant Profile Picture
    278 on at

    Could you please go into detail on grabbing the lookup value within the flow?

  • LeeHarris Profile Picture
    1,026 on at

    Hi @duncant 

    You will need to make use of the Get Record action and request the record from CDS using the Id that you already have. The screenshot below shows a Flow that is fetching a list of Contacts from CDS and then for each one (in the Apply to Each loop) fetching the associated Parent Account using a Get Record action. You can see in the output of the Compose action that the company name from the List Records action is the Guid whereas the Name from the Get Record action is the text value.

     

    Flow setup with List action and Get Record actionFlow setup with List action and Get Record action

     

    Compose action outputCompose action output

     

    Hope this helps.

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard