Power Automate Fundamentals # 8: Usage of URIHost Function in Power Automate

Introduction:

In Power Automate, most of the common scenario is to extract host details URI where in power automate can be used to form a dynamic url to open any record from an email link  which can be achieved easily using URIHost Function .

Step 1:

Login to the required Power Apps environment using URL make.powerapps.com by providing user name and password and click on Flows on the left hand side as shown in the below figure.

Step 2:

After Step 1,  Click on New Flow and select instant cloud flow and provide the trigger as Manually trigger a flow and click on Create as shown in the below figure.

Step 3:

After Step 2, name the flow as URIHost to hold Website url we must click on + New Step and Choose compose operation and provide the following

step name as Compose – Website Address

Inputs : https://venkatasubbaraopolisetty.com/home/

And click on save as shown in the below figure.

Step 4:

After Step 3, click on + New Step and Choose compose operation and provide the following

step name as Compose – uriHost Function

and click on Inputs  and in the down window click on Expression tab and see for uriHost

uriHost (uri: string)

and provide value as 

uriHost(outputs(‘Compose_-_Website_Address’))

And click on ok/Update as shown in the below figure.

Step 5:

After Step 4, Test and run the flow and see the desired result as shown in the below figure.

Note:

  1. Make sure to save and run the flow whenever you try expressions.
  2. MS documentation is found at here

Conclusion: In this way we can extract host value  from URI in Power Automate flow.

3 thoughts on “Power Automate Fundamentals # 8: Usage of URIHost Function in Power Automate

  1. Pingback: Power Automate Fundamentals # 9: Usage of uriPath Function in Power Automate – Common Man Tips for Power Platform, Dynamics CRM,Azure

  2. Pingback: Power Automate Fundamentals # 9: Usage of uriPath Function in Power Automate - Microsoft Dynamics CRM Community

  3. Pingback: Rewind August 2021 – Common Man Tips for Power Platform, Dynamics CRM,Azure

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s