简体   繁体   中英

Power Automate Escape '@' character

In Power Automate, I am using an HTTP activity with the following parameters:

Method: POST
Uri: Example.com
Body: 
{
   "Username":"MyName",
   "Password":"@mycode",
   "PrivateKey":"1234"
}

This request works fine in Postman, but in Power Automate, it returns an error which says The power flow's logic app flow template was invalid. Unable to parse template language expression 'mycode': expected token 'LeftParenthesis' and actual 'EndOfData'. The power flow's logic app flow template was invalid. Unable to parse template language expression 'mycode': expected token 'LeftParenthesis' and actual 'EndOfData'. Which seems to me like it's unable to read the "@" sign because the password is supposed to be @mycode, not mycode

Is there an escape character I can use for this? Unfortunately I'm not able to change the password.

Option 1

You can define a variable and store your password field's data in it and pass in "send http action".

Option 2

Refer to attached screenshot Send http action

In Power Automate, special characters are always escpaed if you write them twice. In your case it would look like this: "@@mycode"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM