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 :
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 440

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
    440 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 119

#2
ManoVerse Profile Picture

ManoVerse 78 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 66 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans