Good afternoon,
I am working within Architect on a new call flow and I am trying to solve for custom logic that I believe needs to utilize Data Actions.
I believe Genesys Cloud tracks all calls as 'Journeys'. Thus I should be able to find the last time a customer journey has been updated or go a bit deeper and add logic to look at the time of the newest call. I did test my theory and used the following api's in the API Explorer:
/api/v2/externalcontacts/identifierlookup, This does a good job of finding the contactID of a customers Journey and can be searched by Phone. I could use the Call.ani with some formatting to run this search.
/api/v2/externalcontacts/contacts/{contactId}/journey/sessions, This does a great job of taking that contactid of the customer and finding the most recent calls from this ANI.
Long story short, I am trying to create a data action or series of data actions to do this logic, but am running into roadblocks. I can get the queries to run in the API explorer but not in the Data Actions. I am certainly not a developer at heart, however the Genesys toolset looks pretty user friendly?
Secondly, Am I going about this the wrong way, is there a better way?