My question today is if there is any way to search for an interaction (obtain its conversationID) based on an External Tag. I need to implement it in a Data Action, but I haven't found any specific endpoint. I found another topic (Query conversations by custom participant attribute - #2 by Jerome.Saint-Marc) where this is discussed but I haven't found the correct Querys combination to obtain the conversationID, could someone help me?
Thank you very much Jerome, I have another question if it's not too much trouble.
I managed to do the query and I was able to find it by external tag, my question is, is it possible to do this query from a data action? I'm a bit complicated since I've only made GET requests.
Is there any example of a POST request with similar queries?
You can use a Genesys Cloud Data Action like this for your Input Contract:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Search for Previous Conversations By Tag",
"description": "Get previous conversations for the given Tag.",
"type": "object",
"properties": {
"INTERVAL": {
"description": "The time interval to search",
"type": "string"
},
"TAG": {
"description": "The TAG of the conversation",
"type": "string"
}
},
"additionalProperties": true
}
And something like this for your Request Configuration: