0

Using Variables with strings in Master flow

In a master flow I'm trying to call a REST API with part of a result of another REST API which is stored in a variable and the body would look something like

{"key": @variable}

but I get the error

Invalid Expression: Can't parse node varsNameToValueMap

So what would be the correct way for going about using a variable in a similar way to the above?

2 replies

null
    • Shai_Ben_Ami
    • 2 yrs ago
    • Reported - view

    Hello Niko, 

    When you use an expression then you need to threat the rest of the body as string, and concate it with the variable, and if you want to use quotes then you need to escape them with anther set of quotes, for example:
    "{""key"":" + @variable+"}"

     

    Let me know if it solved the issue.

    Thanks! shai.

    • Senior Director of Product
    • Ian_Macdonald
    • 2 yrs ago
    • Reported - view

    Hi Niko Z

    Did Shai's solution work for you?

    Thanks,

    Ian

Content aside

  • Status Answered
  • 2 yrs agoLast active
  • 2Replies
  • 45Views
  • 3 Following