Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

REST Request Body dealing with "'s

Hi

I'm having difficulty passing double quotes within the request body to an APUI.

For example, I one of my data items uses a " as a measurement of inches which is failing on that particular call.

{

"Parameters": {

"Key": "xxxxxxxxxxxxx",

},

"Query": {

"1": "12" Cuff",

"2": "8mm Drills",

"3": "Steel Bearings"

}

}

As you can see the 12" Cuff is causing the issue.....  Is there a workaround which will enable this to work?

Many thanks,

Phil

1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

May be try

'"12"'&chr(32)&'Cuff"'

View solution in original post

2 Replies
sasiparupudi1
Master III
Master III

May be try

'"12"'&chr(32)&'Cuff"'

prees959
Creator II
Creator II
Author

Hi,

This worked perfectly! Thanks! 

I'll need to dynamically loop through a dataset and pass each string to the API within a variable .. is there any way I can test if the description has " and replace with chr(32)?