Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: ymattica on March 24, 2016, 05:48:10 PM

Title: Raise Event Block and Json String - Composer 8.1.4
Post 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
Title: Re: Raise Event Block and Json String - Composer 8.1.4
Post by: cavagnaro on March 24, 2016, 06:22:43 PM
Convert the json to string maybe? As the input for the function is a string makes sense a json not be valid.
Title: Re: Raise Event Block and Json String - Composer 8.1.4
Post by: ymattica on March 24, 2016, 06:40:31 PM
Thanks,
I'll do what I suggest we do even if the JSON format was very convenient for my purposes :(
Best Regards
Title: Re: Raise Event Block and Json String - Composer 8.1.4
Post by: cavagnaro on March 24, 2016, 06:53:34 PM
Yes, but then on the other side you grab the string and just convert to a json object again
Title: Re: Raise Event Block and Json String - Composer 8.1.4
Post by: ymattica on March 25, 2016, 09:27:47 AM
OK  ;)
Thanks again