09-16-2011 09:39 AM - edited 03-14-2019 08:34 AM
using expression editor trying to do something like this:
{sString = "\"[parameter]\":\"[value]\"";}
hoping to have sString equal this: "[parameter]":"[value]"
it appears to not be recognizing the \ as an escape character. any thought?
09-16-2011 10:28 AM
Hi
I think I recall having to put the escaped chars in as individual characters. There may be a better way... but then there are also better UCCX folks than me :-)
Try:
sString = '\"' +"[parameter]" + '\"' +":" + '\"' + "[value]" + '\"'
(intentional single quotes round the escapees)
Regards
Aaron
Please rate helpful posts..
09-16-2011 10:36 AM
"but then there are also better UCCX folks than me :-)"
few and far between. THANKS!!
09-16-2011 10:39 AM
It doesn't look good though does it? You just know you must be missing something when it has so much typing for such a simple thing?
:-(
Aaron
09-16-2011 10:44 AM
{sComments = "{"+ '\"'+"message"+ '\"'+":"+ '\"'+ sComments + '\"'+"}"; }
what's ugly about that?? it's just ugly after the = sign ... thanks again.
10-24-2011 05:40 AM
Didn't need a quote in my string, but the syntax helped me from beating my head against my desk.
Thanks aaronharrison
07-26-2015 08:11 AM
Maybe this can help others.
At least from CCX 9.0 you can achieve the goal by creating the string with u prefix (which means "extended string literal"), e.g.:
set string = u"\"alfa\", \"bravo\", \"charlie\""
--
Filippo
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