Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: cavagnaro on September 06, 2017, 12:42:40 PM

Title: Attach Data via URS HTTP interface
Post by: cavagnaro on September 06, 2017, 12:42:40 PM
Hi guys,
Quick question...can we attach data via URS HTTP interface? Rest API?
If so, how?

I know, will check URS docs later but don't have access right now and need a fast light

Enviado de meu E6633 usando Tapatalk

Title: Re: Attach Data via URS HTTP interface
Post by: Kubig on September 06, 2017, 01:58:44 PM
Try this:
http://IP:PORT/urs/call/connid/update?sync=1&key1=value1&key2=value2...
Title: Re: Attach Data via URS HTTP interface
Post by: cavagnaro on September 06, 2017, 02:42:32 PM
Nice!! Thanks Kubig! [emoji16] fast answer and solution at customer meeting

Enviado de meu E6633 usando Tapatalk

Title: Re: Attach Data via URS HTTP interface
Post by: cavagnaro on September 06, 2017, 04:43:19 PM
:'(  Will not work as in our scenario the call doesn't go through URS, is a manual Outbound call...When tested this, URS didn't know about the ConnID created on TServer only...
Any suggestion?
Title: Re: Attach Data via URS HTTP interface
Post by: terry on September 06, 2017, 05:59:48 PM
If URS doesn't see the interaction then you can try method trek - sending "raw" trequest - (analog of strategy function SendRequest).
Method need to specify tserver (or switch), event=name of request to send as seen in logs), Attributes names also as is (but with cut off "Attribute" prefix). 

Something like
http://host:port/urs/trek/exec?tserver=MyTServer&ThisDN=2202&event=RequestUpdateUserData&ConnID=033902a8fb644019&UserData.abc=StringData&UserData.{d}xxx=557

Just one thing - by default method trek (sending arbitrary trequest through web) is disabled. You will need set URS methods in section http to all (by default it is all-trek), http/methods=all
Title: Re: Attach Data via URS HTTP interface
Post by: cavagnaro on September 06, 2017, 06:32:15 PM
I could kiss you right now, you know?? I opened an eSR and told me there was no way...
:-X


Thanks again!