'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'. 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.
Solution 1:[1]
In Power Automate, special characters are always escpaed if you write them twice.
In your case it would look like this: "@@mycode"
Solution 2:[2]
You can initialise a variable and store your data in it later pass in "send http action".
‘Send http action’ Screenshot link
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | arne |
| Solution 2 |
