" /> IRD Script Issue - Genesys CTI User Forum

Author Topic: IRD Script Issue  (Read 2593 times)

Offline Maya

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
IRD Script Issue
« on: August 19, 2015, 02:25:43 AM »
Advertisement
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

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: IRD Script Issue
« Reply #1 on: August 19, 2015, 02:49:16 AM »
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). 

Offline singhisking

  • Newbie
  • *
  • Posts: 48
  • Karma: 0
Re: IRD Script Issue
« Reply #2 on: August 19, 2015, 11:26:58 AM »
[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


Adam G

  • Guest
Re: IRD Script Issue
« Reply #3 on: August 19, 2015, 12:48:48 PM »
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?