Legacy Dev Forum Posts

 View Only

Sign Up

Export Datatable to .csv file using API or automation/batch file(Creating backup of datatable)

  • 1.  Export Datatable to .csv file using API or automation/batch file(Creating backup of datatable)

    Posted 06-05-2025 19:23

    devanand_gawande | 2023-02-08 15:56:42 UTC | #1

    Hello Team,

    Greetings, Could someone please help me with the API name which could be used to take a backup of existing datatables(Export all the records of a datatable into CSV file) I have many datatables and wanted to take a backup of each on daily basis. Or is there any other alternative through which this process could be automated.

    Thanks in advance.


    Jerome.Saint-Marc | 2023-02-10 11:03:24 UTC | #2

    Hello,

    You can export your datatable using POST /api/v2/flows/datatables/{datatableId}/export/jobs

    You can check the status of the job (wiating for status: 'Succeeded') and retrieve the downloadUri (to the CSV file) using GET /api/v2/flows/datatables/{datatableId}/export/jobs/{exportJobId}.

    This is what Genesys Cloud Desktop is invoking when you ask to export data for an Architect Datatable (Genesys Desktop - Admin UI).

    Regards,


    devanand_gawande | 2023-02-10 12:20:26 UTC | #3

    Superb..!!! Thanks a lot...!!!

    That worked as expected.


    John_Carnell | 2023-02-13 13:20:51 UTC | #4


    This post was migrated from the old Developer Forum.

    ref: 18329