Hi,
We have a requirement to pass Skills to a schedule Callback api via scripts.
{
"scriptId": "${input.scriptId}",
"routingData": {
"queueId": "${input.queueId}",
"priority": ${input.priority},
"skillIds": ["${input.skillIds}"],
"routingFlags": []
},
"callbackUserName": "${input.callbackUserName}",
"callbackNumbers": ["${input.callbackNumbers}"],
"callbackScheduledTime": "${input.callbackScheduledTime}"
}
We are leveraging drop downs for the QueueId values however for the skills we are looking into running an execute data action to query a data table.
The button setup for the custom action will be:
Step
- Execute data action - datatable lookup to retrieve skill ID from the data table thru the QueueId as the key
- Execute data action - create the schedule callback
behavior experienced. callback is created but the skills were not added
I've check the data actions and they are working fine. Architect is able to retrieve what is expected however it does not work thru the script
So I created a separate button to test the api I created for the datatable lookup
Button is stuck on spinning or loading , indicating there is an issue with that. Is there a limitation with this?
I saw the note regarding script having issues with Json array however response received is not on array and I created a translation map for the skillId only.
/api/v2/flows/datatables/${input.datatableId}/rows/${input.rowId}?showbrief=false
Mapping: "$.SkillId"
This is the response received when running the api to lookup the datatable
{
"Skill Name": "TSCS FS CB IRT POWERS",
"SkillId": "89a206e2-c255-4209-93ce-fde78d9a9164",
"key": "52f09ab2-903b-4cac-8cd4-aa4c769c267d",
"Queue Name": "FS CB IRT POWERS"
}
both buttons are to execute data action for the datatable lookup.(for this test -screenshot)
I'd like to know what I can do to fix this in order to meet the requirements and what might be causing the issue.