Hello Team,
Greetings, I am getting output of API(Campaign Details), but unable to save it in one variable. as I want to use it for next PUT operation. Plz help with the Translation Map/Success Template syntax details. and a logic to understand the same.(a documentation/Video link plz)
Below is the output of the API request: I have one output contract variable "campaigndata", and want to save all the output in that variable. (as of now I could see a flat JSON output)
Thanks a lot..!!!
Query:
GET /api/v2/outbound/campaigns/{campaignId}
Output:
{
"id": "148abdewewewewew48f-84cf-efXXXbf2",
"name": "SNOW_INC_Mgmt",
"dateCreated": "2023-08-10T03:14:31.842Z",
"dateModified": "2023-08-10T08:58:00.723Z",
"version": 42,
"contactList": {
"id": "cc0wewedb6-4669-b7fc-3ebXXXX4f0",
"name": "Shift1_IncMgr_Snow",
"selfUri": "/api/v2/outbound/contactlists/cc03efcd-XXXX669-b7fc-3eb5wewewe4f0"
},
"dialingMode": "agentless",
"site": {
"id": "0b1502wewewew9-4405-a60f-92c4f6ae1dfa",
"name": "Cawewearszawa (PL)",
"selfUri": "/api/v2/telephony/providers/edges/sites/0b150218XXX05-a60f-92c4f6ae1dfa"
},
"campaignStatus": "off",
"phoneColumns": [
{
"columnName": "ContactNo",
"type": "Cell"
}
],
"abandonRate": 5,
"dncLists": [],
"callAnalysisResponseSet": {
"id": "0afwe-4b79-404a-bb19-95XXXx9ef",
"name": "SNOWOB",
"selfUri": "/api/v2/outbound/callanalysisresponsesets/0afd8dfdfb79-404a-bb19-9594dda689ef"
},
"callerName": "weweni ServiceNow",
"callerAddress": "+442dddddf84",
"outboundLineCount": 1,
"ruleSets": [],
"skipPreviewDisabled": false,
"previewTimeOutSeconds": 0,
"singleNumberPreview": false,
"alwaysRunning": false,
"contactSort": {
"fieldName": "ContactNo",
"direction": "ASC",
"numeric": false
},
"contactSorts": [
{
"fieldName": "ContactNo",
"direction": "ASC",
"numeric": false
}
],
"noAnswerTimeout": 20,
"callAnalysisLanguage": "en-GB",
"priority": 5,
"contactListFilters": [],
"division": {
"id": "bweww070-4c -d9fb412e8b1a",
"name": "Home",
"selfUri": "/api/v2/authorization/divisions/bweewDDD ec5DDD412e8b1a"
},
"dynamicContactQueueingSettings": {
"sort": false
},
"selfUri": "/api/v2/outbound/campaigns/14wewewec-6c -efc77b7d9bf2"
}
I tried with the below given one translationMap, but its not working.
{
"translationMap": {
"campaigndata": "$.campaigndata"
},
"translationMapDefaults": {},
"successTemplate": "${campaigndata}"
}