Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Exporting Data Tables Via Api

    Posted 13 days ago

    Hello Everyone,

    I working on the code to auto download few data tables based on the Given id of the Datatable. So lets say I give an input of two datatable id's I want to export the data of that two datatable and store it. I am able to pass the data table id for downloading the data, able to do a post request via post /api/v2/flows/datatables/{datatableId}/export/jobs, then able to get the status and the download URI from get
    /api/v2/flows/datatables/{datatableId}/export/jobs/{exportJobId}.
    Now after this I am taking the download id from the downloadURI received from the get job and trying to download the file via the download api get/api/v2/downloads/{downloadId}
    However I am getting the results as below:
    getDownload success! data: "key,CallsInQueue,CallWaitTime\r\nSet Call Back detail,3,5\r\n"

    Whereas when I am trying to run the downloadId in the API explorer I am getting a download link to download the file.
    Can anyone please let me know what I am doing wrong here and why I am not getting the link to download the file ?


    #API/Integrations

    ------------------------------
    Siddhartha Chopdar
    ------------------------------


  • 2.  RE: Exporting Data Tables Via Api

    Posted 13 days ago

    Please ignore it I was able to resolve it



    ------------------------------
    Siddhartha Chopdar
    ------------------------------



  • 3.  RE: Exporting Data Tables Via Api

    Posted 12 days ago

    I'm glad to hear that you were able to resolve your issue. Would you mind sharing how you were able to fix your issue?



    ------------------------------
    Jason Kleitz
    Online Community Manager/Moderator
    ------------------------------



Need Help finding something?

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