Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Maya on August 19, 2015, 02:25:43 AM
-
Hello SME, I am using sample IRD script for social media (Facebook and Twiiter). I updated the Strategies as per business requirements. I am facing a strange issue of variable declared in screening strategy not visible in agent delivery strategy.
here are steps -
Declared variable as string type and scope of user. I assign value to this variable and then using Attach block add this as user data to the interaction. Added delay of 5 sec.
Now , in next strategy , i access this variable using Udata. out of 10 interaction , 3-4 times I am able to retrieve value of user data but remaining times its empty. very sporadic in nature.
Please suggest me is there a better way to access variable values between strategies ?
Thanks.
No
-
If data expected to be specific for interactions (every interaction has its own values of "variables") - basically you need to use attached data to pass data between strategies processing the interaction (it is the most simple and reliable way, other available "ways" are much more trickier).
Varibales of scope user/global are SHARED by all interactions (you can not assume if you set user variable to some value in one strategy get the same value in another startegy for the same interactions - it might be easily overwritten by stregy for some other interaction).
-
[quote author=terry link=topic=9050.msg40543#msg40543 date=1439952556]
If data expected to be specific for interactions (every interaction has its own values of "variables") - basically you need to use attached data to pass data between strategies processing the interaction (it is the most simple and reliable way, other available "ways" are much more trickier).
Varibales of scope user/global are SHARED by all interactions (you can not assume if you set user variable to some value in one strategy get the same value in another startegy for the same interactions - it might be easily overwritten by stregy for some other interaction).
[/quote]
Terry, thanks then what should be scope of variables?
I am also using attach data logic. I selected scope as user to make sure this data is latter available for reporting as kvp.
Sent from my SGH-I317M using Tapatalk
-
I would add;
Test your Strategy with different Key variables - try to create some very unique values ("999999") and make sure that WYSIWYG when you pass that unique variable. As mentioned by Terry; it's possible that you are passing a variable which, due to it's local/user/global status, may actually belong to a different ConnID.
Also; make sure you don't have a duplicate Key names in [i]any [/i]of your Strategies (local/user [i]or [/i]global). With larger deployments, it can happen!
HTH?