08-19-2024 11:16 AM
Hi Team,
I have created one uccx scipt that is using the Post method . I want 2 string value double quotes.
Eg: "client_name" : "Client_name"
Can you suggest how do I get the double quotes.
Solved! Go to Solution.
08-26-2024 12:50 AM
Try this :
u"{\"clientname\":\"SRE\",\"password\":\"12345\"}"
08-19-2024 06:43 PM
There are a few historical posts about escaping quotes in UCCX, hopefully these are of use to you.
https://community.cisco.com/t5/contact-center/uccx-send-json-double-quotes-in-rest-request/td-p/4517032
https://community.cisco.com/t5/contact-center/escape-character-not-working-in-uccx-7-need-quote-in-string/td-p/1752881
https://community.cisco.com/t5/contact-center/how-to-put-double-quote-character-in-a-string-variable/td-p/3397931
08-20-2024 05:32 AM
Thanks for sharing the link .
Below steps which I created unfortunately not getting the double quotes. Can you suggest
{
"client_name": "SRE",
"password": "123456",
}
I am getting the out put value is
"{ client_name : SRE , password : 123456 , }"
08-20-2024 08:16 AM - edited 08-20-2024 08:53 AM
AFAIK you haven’t followed the advice given by @bill.king1 in the links he posted. From what I understand you’d need to escape the double quote for it to be kept. Please read the posts shared with you again more thoroughly.
08-20-2024 10:30 AM
In short you're going to have to send something like this: {
\"client_name\": \"SRE\",
\"password\": \"123456\",
}
There are a few other little gotchas, but that should get you more than half way there.
david
08-20-2024 09:09 AM
Sure.. I liked the post
08-20-2024 11:17 AM
I didn’t mean that you should like the post, which is a nice and respectful way to express gratitude, but that you should follow the advice given on the other posts that was linked to.
08-20-2024 10:39 AM
My lazy solution for this has been to create character variables for single and double quote, and set the initial value when defining the variable. Then I paste them together when building the string value.
08-20-2024 10:47 AM
08-20-2024 11:04 AM
08-20-2024 11:22 AM
@david.macias it is not working
08-20-2024 11:27 AM
@Roger Kallberg @david.macias @Elliot Dierksen @bill.king1
if possible can you create a sample script . So I can refer.
08-21-2024 01:12 AM
Both values separated by the value comma(,).
08-25-2024 11:42 PM
Hi Team,
I am tried multiple ways nothing working . Can I get a help
08-26-2024 12:50 AM
Try this :
u"{\"clientname\":\"SRE\",\"password\":\"12345\"}"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide