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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to get lookup name instead of id in send an email action in Ms Flow

(0) ShareShare
ReportReport
Posted on by 425

Hi, 

I have a custom entity Lease. This lease entity contains the many lookups like user's and account.

I have created  Ms flow in which I am sending an email and I want to get the all lookup's name in the email body but as flow is triggered I am just getting the lookup's Id's.

I am using this expression in which I got the Id:- triggerOutputs()?['body/_cyno_primaryclientcontact_value'] 

and If I use:- triggerOutputs()?['body/_cyno_primaryclientcontact_value@OData.Community.Display.V1.FormattedValue'] then got nothing.

I have the same question (2)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi Himanshu,

    Maybe you can add one action ‘Get a row by ID’ action before get lookup field name.

    For example, I test I contact entity, which have one lookup field named ‘Account name’ related to account entity.

    1.Firstly, I tested it as your example, then I got the same results with you.

    triggerOutputs()?['body/_parentcustomerid_value'] can get id.

     pastedimage1620031854100v1.png

    triggerOutputs()?['body/_parentcustomerid_value_parentcustomerid_value@OData.Community.Display.V1.FormattedValue'] get nothing

    pastedimage1620031870499v2.png

    2.Then i add one  action ‘Get a row by ID’  with guid from the trigger, and use 

    outputs('Get_a_row_by_ID')?['body/_parentcustomerid_value@OData.Community.Display.V1.FormattedValue']
    pastedimage1620032103986v3.png
    Test Result:
    pastedimage1620032155400v4.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Himanshu Kamboj Profile Picture
    425 on at

    Thanks Leah!!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans