cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Shidin
Level: Powered On

Dynamics 365 - Get URL dynamically in flow

Hi, 

 

I am using Flow with Dynamics 365 to build out a Quotes Approval Process.

In the 'Item Link' textbox on the Approvals step, I am concatenating the 'CRM tenant name' and the Quote GUID so that the user can get a link to the Quote record. (see screenshot below)

ApprovalsDyn365.png

 

  1. As you can see, I have hardcoded the Dynamics 365 URL and only the Quote GUID is dynamic.
    How can I get the Dynamics 365 URL in the flow? 
    Looking for something similar to what 'formContext.context.getClientUrl()' does in a web-resouce in Dynamics 365.
  2. When is the recommended or the best way to 'deploy' this flow to my Production tenant?

 

Thanks in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Dynamics 365 - Get URL dynamically in flow

Hi @Shidin

 

For your first question:

I afraid that the only way should be hardcoded the Dynamics 365 URL and I couldn't find any to get the Dynamics 365 URL in flow.

 

For your second question:

Are you creating the flow in another tenant instead of the Production tenant?You could take a try to export the flow to see if it could copy the flow to Production tenant, if not, please manually create the flow on Production tenant.

 

Best regards,

Alice

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Dynamics 365 - Get URL dynamically in flow

Hi @Shidin

 

For your first question:

I afraid that the only way should be hardcoded the Dynamics 365 URL and I couldn't find any to get the Dynamics 365 URL in flow.

 

For your second question:

Are you creating the flow in another tenant instead of the Production tenant?You could take a try to export the flow to see if it could copy the flow to Production tenant, if not, please manually create the flow on Production tenant.

 

Best regards,

Alice

View solution in original post

Shidin
Level: Powered On

Re: Dynamics 365 - Get URL dynamically in flow

For 1, What I ended up doing was adding my Dynamics instance URL as a configuration record (custom entity) and then use the 'Dynamics 365 - Get records' action to query for that particular record.

 

 

 

edxsandeep
Level: Powered On

Re: Dynamics 365 - Get URL dynamically in flow

You can do following - 

e.g -My full link is as below, but my last underlined portion only will be dynamic.

 

https://orgf5f2b738.crm5.dynamics.com/main.aspx?appid=f9c14c95-affc-e811-a97d-000d3aa0f171&pagetype=...64cfa3e5-0c06-e911-a97f-000d3aa0f171

 

For the underlined dynamic part, Please add - Unique identifier for enetity instances from dynamic content. 

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Coming Soon: T-shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors
Users online (5,979)