N03xCu53 | 2024-05-22 05:24:11 UTC | #1
I'm currently calling a data action using below config
Request URL Template /api/v2/analytics/conversations/details/query
Headers
Request Body Template
{ "interval": "${input.Interval}", "order": "desc", "orderBy": "segmentStart", "paging": { "pageSize": 25, "pageNumber": 1 }, "segmentFilters": [ { "type": "and", "predicates": [ { "type": "dimension", "dimension": "callbackNumber", "operator": "matches", "value": "${input.CallbackNumber}" }, { "type": "dimension", "dimension": "purpose", "operator": "matches", "value": "acd" }, { "type": "dimension", "dimension": "queueId", "operator": "matches", "value": "${input.QueueId}" }, { "type": "dimension", "dimension": "segmentEnd", "operator": "notExists" }, { "type": "dimension", "dimension": "mediaType", "operator": "matches", "value": "callback" } ] } ], "conversationFilters": [ { "type": "and", "predicates": [ { "type": "dimension", "dimension": "conversationEnd", "operator": "notExists" } ] } ] }
Response
{ "translationMap": {}, "translationMapDefaults": {}, "successTemplate": "${rawResult}" }
Action Contracts
Json Results
Question:
- how would I return the list of conversation ids under "conversations.conversationId" as a variable in the Architect Flow.
Jason_Mathison | 2024-05-22 13:37:39 UTC | #2
Hi N03xCu53,
You are going to need to use the translation map to gather the conversation IDs and then insert them into a response template.
If you haven't already, I did a devcast a while ago that will hopefully help you get going with Data Actions: https://www.youtube.com/watch?v=o4L6qOqWKdY
--Jason
system | 2024-06-22 13:38:10 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 26400