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.
@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/
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
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
Regards,
Reza Dorrani
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional