Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Data action update scheduled callbacks

    Posted 08-27-2024 03:59
    No replies, thread closed.
    Hello
    I'm trying to create a data action that updates callbacks for use in a Bot For this I use /api/v2/conversations/callbacks/bulk/update

    But I can't get it to work and it gives me an error

    I share the configuration in case you can help me



    And the error it returns


    While in the API it does allow me to change



    Thanks for everything
    Icono de Validado por la comunidad

    #ArchitectureandDesign

    ------------------------------
    Juan Carlos Fernandez
    Admiral Intermediary Services, S.A.U.
    ------------------------------


  • 2.  RE: Data action update scheduled callbacks
    Best Answer

    Posted 08-27-2024 15:37
    Edited by Cameron Tomlin 08-29-2024 17:20
    No replies, thread closed.

    Hello Juan, 

    I see in the screenshot before the error there is a random space before the \"conversationId\". 

    This could be whats causing the error as the error indicates that's somethings wrong with your syntax. 

    If it's working in the developer center you could just copy/pasta the same json and see if that helps. 

    Cheers,



    ------------------------------
    Cameron Tomlin
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Data action update scheduled callbacks

    Posted 08-28-2024 06:19
    No replies, thread closed.

    Hello 

    Thanks for your response Cameron Tomlin

    The error is in the Request Body Template

    But now I have the problem with the "response"

    In order to use this data option, I need to detect when it has worked and when it hasn't

    If I run the data action wrong the result in the API is this

    And if I execute it correctly it would be 

    So I thought about using "errorCount" as the response.
    If it is 0 it is OK
    and if it is 1 in KO

    But I don't know how to transfer that to my data tion?

    Thank you
    Icono de Validado por la comunidad


    ------------------------------
    Juan Carlos Fernandez
    Admiral Intermediary Services, S.A.U.
    ------------------------------



  • 4.  RE: Data action update scheduled callbacks

    Posted 08-29-2024 17:20
    No replies, thread closed.

    Hello Juan, 

    This would be more of a developer forums question then at this point as it falls with developing a data action response. I can provide this documentation but you might want to go to the developer forums and make a post there to get a developer perspective on how to correctly develop this. 

    Cheers, 



    ------------------------------
    Cameron Tomlin
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------