Hi Reginald
Try this as your output contract. This should get you started:
{
"type": "object",
"properties": {
"entities": {
"type": "array",
"items": {
"title": "items",
"type": "object",
"properties": {
"mediaSettings": {
"type": "object",
"properties": {
"call": {
"type": "object",
"properties": {
"serviceLevel": {
"type": "object",
"properties": {
"durationMs": {
"type": "integer"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
------------------------------
Vaun McCarthy
NTT New Zealand Limited
------------------------------
Original Message:
Sent: 09-23-2021 09:48
From: Reginald Sheraton
Subject: Data Action - Get value from JSON output
Hi all,
hope someone can assist, i am getting Queue Service Level value via API = /api/v2/routing/queues?id=${input.id} via a Data Action
data is returned in JSON format and require only the Queue Service Level value to assign to an output.
i have attached a detailed document with all relevant info and hoping someone is able to guide me in the right direction.
#Routing(ACD/IVR)
------------------------------
Reginald Sheraton
------------------------------