Power Automate Functions - URIPath (Change URLs When Changing Environments)

Power Automate Functions - URIPath

In Power Automate, one common scenario is to get the path after the host which will allow configuring URLs easily between environments automatically. uriPath function is used to extract path after host in power automate. You can also check my previous post about the uriHOST to get the host website from a link.

Now we will discuss that how to get the path of our file from the URL.





Go to power automate and create a new flow by clicking on the ‘New’ button

Select instant cloud flow and select manually from the below list then finally hit the create button

Power Automate Functions - URIPath

Add a ‘Compose Action’:

In compose, action add an URL as input

Add another compose action and add there a ‘Uri Path Function’

Power Automate Functions - URIPath

Select save button and click on test >> manually >> run flow >> finally done.

There is a folder named ‘watch’ where this video whose link is being used is placed.

Power Automate Functions - URIPath


In this way, we can extract the path that is present after the hostname in the Power Automate flow.


Thanks for commenting. Your comment will be live soon after approval.