Dears,
I'm trying to retrieve the list of queues from a certain Division and then feed it into a Dropdwon list into my agent Scripts.
Here is my Data action output contract + response config :
Response :
{
"translationMap": {
"ListOfQueueNames": "$.entities[].name",
"ListOfQueueIDs": "$.entities[].id"
},
"translationMapDefaults": {
"ListOfQueueNames": "[]",
"ListOfQueueIDs": "[]"
},
"successTemplate": "{"ListOfQueueNames": ${ListOfQueueNames},"ListOfQueueIDs": ${ListOfQueueIDs}}"
}
Output Contract :
{
"title": "Response",
"type": "object",
"properties": {
"ListOfQueueNames": {
"type": "array"
},
"ListOfQueueIDs": {
"type": "array"
}
},
"additionalProperties": true
}
When testing it, everything work perfectly.
Now, I try to use it into my script --> I don't have any Input or Output
If I change my output contract to string type instead of array, Input and Output are back.
I assumed that it was possible to retrieve an array from a DA into a String List Types in the Agent script, am I wrong or is something else?
Because if I look at this topic
https://developer.genesys.cloud/forum/t/extract-array-elements-within-script/16274/7
It seems feasible, so what can cause my issue?
Thanks for your assistance.
Kind regards,
Nathan.