How to use only URL parameters.(Power Automate Cloud flows)

03/11/2024

Japanese version.

The reverse of "How to remove URL parameters."

Steps

Since the URL parameter begins with "?" and therefore use that rule.

Prepare the URL to be converted in the variable.

Next, retrieve the position of the "?" position.

Use the indexOf function.

indexOf(variables('url'),'?')

Next, prepare a variable to store the converted URL.

Then, initialize the URL for parameter deletion.

Next, "Condition" set up.

ParameterValue
LeftStarting position of the URL parameter.
Centeris greater than or equal to
Right0

No parameter is set for "If no".

If there is no URL parameter, the start position is set to -1, and the "If no" case is entered.

Since nothing is done, the converted URL remains the same.

For "If yes" specify the following expression.

Use the substring function.

substring(variables('url'),add(variables('startPosition'),1))

The result is a parameter-only URL.

For those who want to learn Power Automate Cloud flow effectively

The information on this site is now available in an easy-to-read e-book format.

Or Kindle Unlimited (unlimited reading).

You willl discover how to about basic operations.

By the end of this book, you will be equipped with the knowledge you need to use Power Automate Cloud flow to streamline your workflow.

Links

Tips.(Power Automate Cloud flows)