Power Dynamics
  • Power Dynamics
  • 🍕My name
  • D365 CE
    • Copilot
      • 🥐Add Copilot into Rich Text Control
    • Sales
      • Copilot in D365 Sales
      • Export record to PDF
    • Customer Experience
      • Contact Center (Omnichannel)
        • 🐚Internal Live Chat in MDA
        • 📢Add Chat Widget to Power Pages - Proactive Chat
      • Attachment Control
      • Case Routing: Basic Routing rule set
      • Custom SLA for any Entity
      • Customer Insight
        • Journey - Custom Trigger - Call Power Automate
    • Field Service
  • Power Platform
    • Analytics
    • Dataverse
      • Use case for the feature of Record ownership across Business Unit
      • 💡Workaround: Change the OOB "Exchange Rate" of a record
      • Using a Virtual Entity to store historical log (sample)
      • Disable Empty Address record
      • Using Adaptive card
      • Block Unmanaged Customizations
      • 🪃Recycle Bin on Dataverse (Preview)
    • Model Driven App
      • 💡Run SSRS report on MDA mobile
      • 💡Tip: Create a Security Role with "App Opener" minimum privileges
      • Tag @person to notify in MDA
      • Auto search on the Lookup field
      • Activities with multiple related records
      • Embedded Power BI - Dashboard
      • Embedded Power BI - Form
      • "Custom Help" - Is it help?
      • New modern Command Bar
      • Tip: Hide the button "Add Existing Record" on subgrid
      • Custom Page - Why not?
      • Hiding sensitive column data
    • Canvas App
    • Fabric & Power BI
      • New Text slicer
      • Dataverse link to Microsoft Fabric
      • 💡Leveraging Interactive Warehouse Floor Maps in Power BI
      • Calculation Group for Time Intelligence
    • Power Automate
      • ✅Sequential Approval
      • 📤Create an Appointment by Outlook Graph API
      • Dowload SSRS Report and Send email
      • Power Automate: Add a table in Email
      • 💡Tips: Get "DisplayName" of the Lookup field on Power Automate
      • E-sign: Power Automate & DocuSign
  • D365 Finance & Operation
    • General
      • 🇻🇳D365 FnO - Virtual entities: Use case
    • Finance
      • Consolidating Customer & Vendor Balances
    • Supply Chain
      • Landed Cost Series
        • Landed Cost- Essential Configuration
        • Landed Cost Scenarios 1
Powered by GitBook
On this page
  • 1st attempt - Using Dynamics Content
  • 2nd attempt - Using Expression

Was this helpful?

  1. Power Platform
  2. Power Automate

Tips: Get "DisplayName" of the Lookup field on Power Automate

#PowerAutomate, #OData, #LookupFiled

PreviousPower Automate: Add a table in EmailNextE-sign: Power Automate & DocuSign

Last updated 1 year ago

Was this helpful?

Recently, I have leveraged Power Automate to retrieve a list of new deals and then sent this list to the Sales Owner.

In practice, I encountered difficulties when attempting to retrieve the Account name and Primary Contact name, both of which are lookup fields, from the Deals entity.

1st attempt - Using Dynamics Content

I used the value in Dynamic content (OOB dynamics field content of Power Automate)

Dynamics content
Result
  • Account (Value): Get record GUID

  • Account (Type): Get the entity name

  • Account (Value): fdf6a531-.....

  • Account (Type): account

... first try, I failed to get the display name with the OOB dynamic content field of the Power Automate.

2nd attempt - Using Expression

Then, I used Expression to create the formula and get the Display Name of Account lookup field.

---

Initially, when displaying all attributes of the Deal entity and then applying a filter on the lookup field "Account" (ntd_account_id), I discovered exciting aspects.

I observed the first value is the "Display Name" of the Account field, I promptly accessed Power Automate and employed the mentioned attribute in my expression.

//The expression:
item()?['_ntd_account_id_value@OData.Community.Display.V1.FormattedValue']

... And checking now:

Thank you for reading & Hoping well... [NTD]yns.asia ... Thank you.

💡
🎉
☕
❤️
invite me a cup.
Deal form: Account & Primary Contact is lookup field
All attributes of the field "Account" (ntd_account_id)
Power Automate used Expression
The final result - Get the "Display Name" of Account lookup field