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.

---

Links

Tips.(Power Automate Cloud flows)