Hi All.
Please follow the following matter.
【What you want to realize】
In accordance with the contents registered in "External contacts", I'd like to make a call to a specific operator.
(Example: Register profiles of high-quality customers as "External contacts" → make incoming calls to specific superior operators with ANI as the key)
【Implementation method】
· Custom DataAction (below)
-----------------
- Contract(IN)
-----------------
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Search External Contacts by Phone Number",
"description": "A Phone Number based request.",
"type": "object",
"required": [
"LOOKUPVAL"
],
"properties": {
"LOOKUPVAL": {
"description": "The Phone Number.",
"type": "string"
}
}
}
-----------------
- Contract(OUT)
-----------------
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Get User Routing Status Response",
"description": "Returns Contracts-Data.",
"type": "object",
"properties": {
"status": { "type": "string" }
}
}
-----------------
- Request
-----------------
{
"requestUrlTemplate": "/api/v2/externalcontacts/reversewhitepageslookup?lookupVal=${input.lookupval}",
"requestType": "GET",
"headers": {
"UserAgent": "PureCloudIntegrations/1.0",
"Content-Type": "application/x-www-form-urlencoded"
},
"requestTemplate": "${input.rawRequest}"
}
-----------------
- Response
-----------------
{
"translationMap": {
"contacts": "$.contacts[0].externalSystemUrl"
},
"successTemplate": "{\n \"contacts\": ${contacts}\n}"
}
⇒ In the data action test, the operator name enters the status.
· Calling DataAction at Architect → transfer to user
【Problem】
In the DataAction test, the intended value is obtained, but Architect does not work as expected.
(I did not recognize the return value of the data action as a user object(?))]
------------------------------
Makoto Nagai
Itochu Techno-Solutions Corporation(CTC)
------------------------------