Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: ymattica on March 24, 2016, 05:48:10 PM
-
Hi,
System variable LAST_EVENT_MESSAGE works only setting a simple string but not setting a Json Object ???
I'm testing a Raise Event Block on a voice application.
I created a custom event and throw it using the Raise Event Block
When I capture the event I am able tot read the LAST_EVENT_MESSAGE value only if I assign a simple string (for example, 'test') but I can not read a JSON string (for example, {"Test": "value"}.
if LAST_EVENT_MESSAGE == test --> OK
if LAST_EVENT_MESSAGE.Test == value --> KO
Could you help me ?
Regards
-
Convert the json to string maybe? As the input for the function is a string makes sense a json not be valid.
-
Thanks,
I'll do what I suggest we do even if the JSON format was very convenient for my purposes :(
Best Regards
-
Yes, but then on the other side you grab the string and just convert to a json object again
-
OK ;)
Thanks again