I am trying to create a Genesys data action that takes in a time interval, email subject, and sender address then outputs the conversation ID(s). I thought I had it working, but in my testing with my own emails that I send to one of our business emails, I don't get any results back with my data action.
I'm using /api/v2/analytics/conversations/details/query with the following request body:
{
"interval": "${input.INTERVAL}",
"order": "asc",
"orderBy": "conversationStart",
"paging":
{
"pageSize": 50
},
"segmentFilters": [
{
"type": "and",
"predicates": [
{
"type": "dimension",
"dimension": "mediaType",
"operator": "matches",
"value": "email"
},
{
"type": "dimension",
"dimension": "subject",
"operator": "matches",
"value": "${input.SUBJECT}"
},
{
"type": "dimension",
"dimension": "addressFrom",
"operator": "matches",
"value": "${input.SENDER}"
}
]
}
]
}
When I try to query for an email that I know took place at our contact center, it shows up in the response, but when I send an email to our testing email address, it wont show up in my query: {"totalHits": 0}. If I look up the conversation ID it shows up, but even using the information from /api/v2/conversations/emails/${input.conversationid}, it won't show up in my query above. The weirdest thing is that if I use the same information in the Genesys developer tools IT WORKS. It seems that the only time it doesn't work is when I use the data action (not the developer tool), and I send the email myself to our test email.
Please let me know if you have any idea what the difference might be that is causing this inconsistency!