Legacy Dev Forum Posts

 View Only

Sign Up

Trying to get time of last prior call from ANI for use in Architect Logic

  • 1.  Trying to get time of last prior call from ANI for use in Architect Logic

    Posted 06-05-2025 18:44

    Joe_Ulrich | 2023-09-14 21:14:54 UTC | #1

    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?


    Jason_Mathison | 2023-09-15 18:46:46 UTC | #2

    Please provide an export of the action that you are testing, and the error that you are getting so that the forum can help you out.

    --Jason


    system | 2023-10-16 18:47:43 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: 22016