Introduction

In this blog explain about how to take record url dynamically using power automate.

Step 1
Login to the required Power Automate environment using URL make.powerautomate.com by providing the user name and password and click on Create on the left-hand side and after chose the Automated Cloud Flow as shown in the below figure

Step 2
After step 1, click on  the trigger as When an item is created, and Give the Flow Name Then click on Create as shown in the bellow figure

Step 3
Click on + New Step, find and select the “List rows” action and select table name is “Model-driven Apps” as show in the below figure.

Step 4
Click on + New Step, find and select the “Condition” action as show in the below figure.

length(outputs(‘List_rows’)?[‘body/value’])

Step 5
After step4, Click on + New Step, find and select the “Compose” action and click on “Expression” tab and update this “outputs(‘List_rows’)?[‘body/value’]?[0]?.appmoduleid” as show in the below figure.

Step 6
After step5, Click on + New Step, find and select the “Compose” action and click on “Expression” tab and update this “first(split(first(outputs(‘List_rows’)?[‘body/value’])?[‘@odata.id’],’/api’))” as show in the below figure.

Step 7
After step6, Click on + New Step, find and select the “Compose” action and click on “Expression” tab and update this (outputs form “Organization url”,”/main.aspx?appid=”, outputs form “APP Module Id”) as show in the below figure.
Step 8
After step7, Click on + New Step, find and select the “Compose” action and click on “Expression” tab and update (outputs form “App url”,”&pagetype=entityrecord&etn=”, Table Name take as dynamically take as dynamically, “&id=”, Record Guid take as dynamically form triggeroutputs) as show in the below figure.
Step 9
After step8, Click on + New Step, find and select the “Compose” action and prepare the mail body for sending an mail as show in the below figure.

Step 10
After step9, Click on + New Step, find and select the “Send an email (V2)” action and update To, Subject, Body as show in the below figure.


After click on save flow and The final look of flow as show in below figure.

Then test the flow and next see the mail is coming as show in below format.

now click on link then it will navigate to a record.

For any Help or Queries Contact us on info@crmonce.com or +918096556344