" /> Attaching INTEGER Userdata using URS - Genesys CTI User Forum

Author Topic: Attaching INTEGER Userdata using URS  (Read 15861 times)

Offline jbobinsk

  • Jr. Member
  • **
  • Posts: 87
  • Karma: 1
Re: Attaching INTEGER Userdata using URS
« Reply #15 on: November 14, 2007, 11:47:06 AM »
Advertisement
I think that you can try to create InteractionData type int and then input value in it so it should work (I never tested it but looks logically).

Regards

JB

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Attaching INTEGER Userdata using URS
« Reply #16 on: November 14, 2007, 03:04:51 PM »
No, doesn't work, tested already

Offline jbobinsk

  • Jr. Member
  • **
  • Posts: 87
  • Karma: 1
Re: Attaching INTEGER Userdata using URS
« Reply #17 on: November 14, 2007, 03:54:43 PM »
It should I'm sure - because a two years before I did it this way. You have to only assign Interaction data not directly key of interaction data.
But I'll check it and let you know.
« Last Edit: November 14, 2007, 04:21:35 PM by jbobinsk »

Offline jbobinsk

  • Jr. Member
  • **
  • Posts: 87
  • Karma: 1
Re: Attaching INTEGER Userdata using URS
« Reply #18 on: November 14, 2007, 04:50:21 PM »
Sorry for confusing you.
I have just checked - and I was wrong, actually I don't see the way in which there is possible to attach/update integer value to the UserData directly from strategy.
I have done it before but not by URS.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Attaching INTEGER Userdata using URS
« Reply #19 on: December 12, 2007, 07:26:15 PM »
Ok guys, I received a solution from Genesys do this:

In my test strategy I created an Integer variable called var_Age.  I assigned my variable a value of 32.  I did not put quotes around the 32 in my assignment block.

Then in my Update function I used the {d} in the Key Field and selected my Variable as the Value.  My Update function was as follows.  NOTE that the entire Prefix and Key are enclosed in Single quotes:

Update['{d}MyAge',var_Age]

URS then did the udpate as follows:

    _I_I_00650184e3e08001 [09:04] ASSIGN: var_Age(LOCAL) <- INTEGER: 32
request to 65220(TServerG3) message RequestUpdateUserData
        AttributeReferenceID    15
        AttributeUserData      [16] 00 01 01 00..
                'MyAge' 32
        AttributeConnID 00650184e3e08001
        AttributeThisDN '5040'

Works for me (URS 7.2)

Can you try and post comments?

Regards

Offline Daimonas

  • Full Member
  • ***
  • Posts: 106
  • Karma: 2
  • There's a fish in every bowl.
Re: Attaching INTEGER Userdata using URS
« Reply #20 on: December 12, 2007, 10:03:12 PM »
The Genesys solution sounds like the best, I remember I ran into this issue a couple years back and I ended up using Routers function SendRequest with a type of "RequestUpdateUserData" and then spesfiy all the parmameters in the Request field.  This works the same as a soft-phone updating user-data.


Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 18
Re: Attaching INTEGER Userdata using URS
« Reply #21 on: December 14, 2007, 09:47:32 AM »
Can you post a sample strategy?

Also, what are some of the other things you can send with SendRequest?

Offline Daimonas

  • Full Member
  • ***
  • Posts: 106
  • Karma: 2
  • There's a fish in every bowl.
Re: Attaching INTEGER Userdata using URS
« Reply #22 on: December 14, 2007, 01:57:55 PM »
Yeah, I will have to find one where I did it but you can pretty much do anything with it, SendEvent works too.

Offline Seb Reeve

  • Jr. Member
  • **
  • Posts: 62
  • Karma: 0
    • Sabio Limited
Re: Attaching INTEGER Userdata using URS
« Reply #23 on: December 14, 2007, 04:35:23 PM »
cavagnaro - you are a genius!! Thanks - another undocumented Genesys feature...

Are there any other prefixes we should know about?! Can you use {f} for float?! or {b} for binary??

Seb

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Attaching INTEGER Userdata using URS
« Reply #24 on: December 14, 2007, 05:06:50 PM »
lol I'm not a genius, I only persevered bothering Genesys people who insisted on it was not doable and called here and there and ups! You can do it! Who would ever know...
Would ask if there are other options.

Regards