" /> IRD Web service GET method variable - Genesys CTI User Forum

Author Topic: IRD Web service GET method variable  (Read 1341 times)

Offline marmota

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
IRD Web service GET method variable
« on: April 14, 2020, 10:12:48 AM »
Advertisement
Hi guys. Can you please recommend how I can send variable (set at IRD strategy) to Web server with GET method.

I set variable (testVar = Orig[]), then put Web service function where I set  Web Service URL (let's say ...sampleAPI.php) and then I need to add testVar value to URL (...sampleAPI.php?ANI=testVar)

How can I do that? Do I have to put any specual char to add testVar value?

Marked as best answer by marmota on April 15, 2020, 02:27:06 AM

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: IRD Web service GET method variable
« Reply #1 on: April 14, 2020, 12:25:29 PM »
You need to pass that only on the QueryString parameters?
In that case, using the Cat function would be enough.
Let's assume you have a variable called v_ReqURI:

v_ReqURI = Cat['...sampleAPI.php?ANI=', testVar]

And then place that variable as the destination of the webservice call on the General tab -> Location -> Web Service URL.

Offline marmota

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: IRD Web service GET method variable
« Reply #2 on: April 14, 2020, 01:27:18 PM »
Thanks! Works =)