Hi there, the customer changed there API on how they return data, no longer 1 x Json, i can now assign is value to a variable in the API which i call on loading of page and display in agent script
------------------------------
Reginald
------------------------------
Original Message:
Sent: 09-09-2024 07:19
From: Cameron Tomlin
Subject: Agent Script Dynamic Variable
Hi Reginald,
Just out of my own curiosity, what can you give specifics on how you resolved this and what specific API you used?
Cheers,
------------------------------
Cameron Tomlin
Online Community Manager/Moderator
Genesys - Employees
Original Message:
Sent: 09-09-2024 02:00
From: Reginald Sheraton
Subject: Agent Script Dynamic Variable
Hi all, thanks for your response, i have resolved this via API but will be logging an idea to retrieve Json within script.
Thanks all
------------------------------
Reginald
Original Message:
Sent: 09-03-2024 12:30
From: Paul Simpson
Subject: Agent Script Dynamic Variable
How is the data provided by the CRM? I would consider using a Data Action to call the CRM's API on page load (you can call DAs from Scripts) and parse out the data within the Data Action to return the data required as separate items.
HTH
------------------------------
Paul Simpson
Views expressed are my own and do not necessarily reflect those of my employer.
Original Message:
Sent: 08-26-2024 16:13
From: Reginald Sheraton
Subject: Agent Script Dynamic Variable
sorry for late response, the problem is that the data is provided via CRM system on script loading and not via Architech
------------------------------
Reginald
Original Message:
Sent: 08-24-2024 01:02
From: Vaun McCarthy
Subject: Agent Script Dynamic Variable
Hi Reggie
How does this JSON object get to the script? If it's coming in via Architect then you could just use Architect to split it up and assign to participant data that matches input variables in the script?
------------------------------
Vaun McCarthy
Original Message:
Sent: 08-23-2024 16:16
From: Reginald Sheraton
Subject: Agent Script Dynamic Variable
Hi community,
Please advise if the below is possible within an Agent Script:
- Receive Json data in script: Sample - {"CLI":"8902057923","DNIS":"8902704132","MSISDN":"8902057923"}
- I require to extract the received data, (CLI, DNIS, MSISDN) and assign to variable in agent script.
- i would also need to be able to handle the avocve is any one of the data in Json is returned blank.
please advise if the above is possble?
#SystemAdministration
------------------------------
Reggie
------------------------------