function ExecuteScript() {
var pattern = %URLPattern%;
return pattern;
}
I want to use a PowerAutomate variable in the "Run javascript function on web page" action & realise that PowerAutomate will throw out the error {"message":"element not found","errorcode":2}{"message":"element not found","errorcode":2}.
The variable %URLPattern%; is entered by the user to find URLs with specific patterns.