Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
How to assign a quote escape character in assign variable — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to assign a quote escape character in assign variable

Received Response
19
Views
3
Comments
edited Dec 6, 2020 5:05PM in Integration 3 comments

Content

The Assign variable expression is "userName sw " + $page.variables.userNameTxt

In JSON, it says 

"parameters": {
            "$variables.filterQueryStr": {
              "source": "{{ \"userName sw \" + $page.variables.userNameTxt }}"
            }

It works if the userNameTxt is of Numeric, but if the userNameTxt is of String then it has got syntax error

From Postman, having the extra \" works but where as it does not work from VBCS

"filter : "username sw \"Test\"",

I have difficulty in concatenating variable with a static string with quotes. Please help on how to frame this expression in VBCS Assign variable

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!