Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Dynamics 365 Getting the look up value instead of the GUID

(0) ShareShare
ReportReport
Posted on by 56

Hello,

 

Trying to perform a simple task of converting a list of records to HTML table and send it to email.

One of the fields is lookup field then from some reason instead of getting the value I'm getting the GUID in this scenario is the owner field:

 

HELP.png

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Dynamics 365 Getting the look up value instead of the GUID

     

     

    70.PNG

    71.PNG

    replace(replace(replace(body('Create_HTML_table'), '&lt;', '<'), '&gt;', '>'), '&quot;', '"')

     

     

  • alexyoy111 Profile Picture
    56 on at
    Re: Dynamics 365 Getting the look up value instead of the GUID

    Hi @v-bacao-msft 

    So sorry it's taking so long time to me to understand I don't know why Microsoft did it so difficult

     

    This is how I would like to see the email:

     

    )LINK
    Susanna Stubberod (sample)LINK
    Nancy Anderson (sample)LINK
    Maria Campbell (sample)LINK
    Sidney Higa (sample)LINK
    Scott Konersmann (sample)LINK
    Robert Lyon (sample)LINK
    Paul Cannon (sample)LINK
    Rene Valdes (sample)LINK
    Jim 1LINK
    Patrick Sands (sample)LINK
    Susan Burk (sample)LINK
    Thomas Andersen (sample)LINK

     

    This is how I am receiving the email:

     

    EMAIL BODET.png

     

     

    This is my entire flow can you please direct me to what I'm doing wrong and why i'm not receiving a simple link to record

     

    st1.pngst2.pngst3.png

  • v-bacao-msft Profile Picture
    on at
    Re: Dynamics 365 Getting the look up value instead of the GUID

     

    Hi @alexyoy111 ,

     

    Could you share the email message? If you want to add hyperlink, you need to add <a></a> and check this similar thread to format HTML table:

    https://powerusers.microsoft.com/t5/Building-Flows/How-to-format-the-table-as-Rich-text-in-send-an-email-body/m-p/203544#M21369

     

    Best Regards,

  • alexyoy111 Profile Picture
    56 on at
    Re: Dynamics 365 Getting the look up value instead of the GUID

    Hi @v-bacao-msft 

    Email body

     

    emailbody.png

  • v-bacao-msft Profile Picture
    on at
    Re: Dynamics 365 Getting the look up value instead of the GUID

     

    Email body???

     

     

  • alexyoy111 Profile Picture
    56 on at
    Re: Dynamics 365 Getting the look up value instead of the GUID

    The same 

     

    😥

     

    enail2.pngthesame.png

  • v-bacao-msft Profile Picture
    on at
    Re: Dynamics 365 Getting the look up value instead of the GUID

     

    Hi @alexyoy111 ,

     

    You could remove <a></a> and fill link in Compose directly.

     

    Best Regards,

  • alexyoy111 Profile Picture
    56 on at
    Re: Dynamics 365 Getting the look up value instead of the GUID

    Hi @v-bacao-msft 

     

    The good news is that i'm not getting any errors but I'm also didn't get a link as you can see the content of the email contains entire URL and the text “LINK TO RECORD” as link

     

    lik.jpg

  • v-bacao-msft Profile Picture
    on at
    Re: Dynamics 365 Getting the look up value instead of the GUID

     

    Hi @alexyoy111 ,

     

    Because href contains "", so it is a valid JSON.

     

    You could add a compose above Append to array variable action and fill hyperlink in it.

    Then fill the output of the Compose in Value.

    69.PNG

     

    Hope this helps.

     

    Best Regards,

  • alexyoy111 Profile Picture
    56 on at
    Re: Dynamics 365 Getting the look up value instead of the GUID

    Hi @v-bacao-msft 

    Unfortunately it's make the same error Enter a valid json

    Although i'm not sure I added correctly

     

    ourside.png

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,708 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow