Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Date of interaction - Script

    Posted 05-22-2019 06:38
    Hello, 

    Would it possible to get the Date of the interaction, Type (inbound/outbound) using a PureCloud Data Action inside a script ?

    Yours,
    #DigitalChannels
    #Implementation
    #PlatformAdministration

    ------------------------------
    Charaf Eddine Chemlal
    Dimension Data France
    ------------------------------


  • 2.  RE: Date of interaction - Script

    GENESYS
    Posted 05-22-2019 06:52
    You can use https://developer.mypurecloud.com/api/rest/v2/conversations/#get-api-v2-analytics-conversations--conversationId--details

    Create a custom Action to get the values you want.

    ------------------------------
    George Ganahl CCXP, GCP
    Principal Technology Consultant
    Genesys
    ------------------------------



  • 3.  RE: Date of interaction - Script

    Posted 05-22-2019 08:04
    Edited by Charaf Eddine Chemlal 05-22-2019 08:06
    hello @George Ganahl

    I found the Data Action that helps getting all the information I wanted.
    Get  /api/v2/analytics/conversations/{conversationId}/details

    But in my case, at the end of the call, inside my script I need to be able to get the conversationID first, to pass it as an input to this Data Action to get all information.

    How Can I get the conversation ID of the current call first in real time ?

    Yours,
     
    ​​

    ------------------------------
    Charaf Eddine Chemlal
    Dimension Data France
    ------------------------------



  • 4.  RE: Date of interaction - Script

    GENESYS
    Posted 05-22-2019 08:18
    Use the Scripter variable named Interaction ID. That holds the ConversationID of the interaction being handled by the script.

    ------------------------------
    George Ganahl CCXP, GCP
    Principal Technology Consultant
    Genesys
    ------------------------------



  • 5.  RE: Date of interaction - Script

    Posted 05-22-2019 08:38
    alright 
    Thank you @George Ganahl​​​

    ------------------------------
    Charaf Eddine Chemlal
    Dimension Data France
    ------------------------------



  • 6.  RE: Date of interaction - Script

    Posted 05-22-2019 08:36
    I can get the conversationID by using in architect call.conversationid.

    But I'm wondering if I would rather ude Set Participant Data or Update Data ?

    Yours,​

    ------------------------------
    Charaf Eddine Chemlal
    Dimension Data France
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources