How to remove URL parameters.(Power Automate Cloud flows)


Japanese version.

The reverse of "How to use only URL parameters."


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

First, in a variable, prepare a URL to delete the parameter.

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

Use the indexOf function.


Next, prepare a variable to store the converted URL.

Then, initialize the URL for parameter deletion.

Next, "Condition" set up.

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

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.


The result is the URL with the parameter removed.



Tips.(Power Automate Cloud flows)