Power Automate Escape '@' character

Viewed 2334

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'. 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.

2 Answers

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

Related