Skip to main content

Notifications

Community site session details

Community site session details

Session Id : tqt/3r8EJyPysZrE7d2kaJ
Power Automate - Building Flows
Unanswered

Build clickable link to D365 Record?

Like (0) ShareShare
ReportReport
Posted on 2 Aug 2019 13:33:06 by

Hi all:

 

I am creating a very simple flow to send an email when a new Lead is created in D365 sales. I'd like to include a clickable link, which is built from the URL of the instance + the LeadID of the newly created Lead. I can get the LeadId by using Lead, so I tried this:

 

concat('https://<d365instance>.crm.dynamics.com/main.aspx?appid=<appid>&pagetype=entityrecord&etn=lead&id=', Lead)

 

where teh names in <> are specific to my instance and hidden for this post, but this didn't work. Can anyone offer a suggestion?

 

Thanks!

 

John.

 

  • RajYRaman Profile Picture
    270 on 04 Aug 2019 at 23:13:33
    Re: Build clickable link to D365 Record?

    @Anonymous- You can get the base url from "@odata.id" in the response. But the response does not return the appid, as the Flow is running in the context of the server, not in the context of the app. All new instances are forced to use Unified Interface by default anyway, so you might be alright if you exclude apppid in the URL (I am unsure about this). Refer to my post -> https://dreamingincrm.com/2019/05/01/quick-tip-cds-base-url-in-flow/

  • abm abm Profile Picture
    32,464 Most Valuable Professional on 04 Aug 2019 at 20:03:17
    Re: Build clickable link to D365 Record?

    Hi @Anonymous ,

     

    Follow this blog 

    https://learningrefresh.home.blog/2019/04/08/create-first-microsoft-flow/

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

     

    Thanks

  • RezaDorrani Profile Picture
    12,141 on 04 Aug 2019 at 16:46:55
    Re: Build clickable link to D365 Record?

    Hi @Anonymous 

     

    How are you getting the Lead dynamic content

     

    If you are running a for loop in Flow for items receieved from Leads Entity

    then use

    concat('https://<d365instance>.crm.dynamics.com/main.aspx?appid=<appid>&pagetype=entityrecord&etn=lead&id=', item()?['leadid'])

     

    where 

    item()?['leadid'] is an expression
     
     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 216 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 213 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 186

Overall leaderboard
Loading started