2

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.

SUMguy
  • 1,505
  • 4
  • 31
  • 61
  • 3
    It looks like changing it to "@@mycode" should do the trick -- https://powerusers.microsoft.com/t5/Building-Flows/Validation-Fails-when-field-has-Symbol/td-p/20588 – Sarah Cox Mar 17 '21 at 20:02

2 Answers2

3

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

arne
  • 123
  • 9
1

You can initialise a variable and store your data in it later pass in "send http action".

‘Send http action’ Screenshot link

Source video link

  • 2
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 16 '21 at 10:37