I would like to extract JTIc1 at 16:00JST using DSS Intraday template. Is there any way to set up using Python?
Hi @Jirapongse Thanks for your prompt reply. I acutally checked examples but couldn't find any scheduled extraction. Also under postman, there is immediate extraction only under "Gui control calls"…
@Aya
Thank you for reaching out to us.
DSS REST API supports both scheduled extractions and on-demand extractions.
Please refer to the LSEG DataScope Select - REST API page. There are tutorials, documents, and examples.
The example page contains a postman collection sample. You can use Postman to generate Python snippet code by referring to the Generate code for a REST API call using Postman in just a few clicks article.
Typically, we don't use DSS REST API to create scheduled extractions because it is easier to create it via the DSS Web GUI. However, to create it, the payload should look like this.
{ "Name": "weeklyschedule", "Recurrence": { "@odata.type": "#DataScope.Select.Api.Extractions.Schedules.WeeklyRecurrence", "Days":["Monday","Tuesday","Wednesday","Thursday","Friday"] }, "Trigger": { "@odata.type": "#DataScope.Select.Api.Extractions.Schedules.TimeTrigger", "LimitReportToTodaysData": false, "At":[ { "Hour":16, "Minute":0 } ] }, "ListId": "{{listId}}", "ReportTemplateId": "{{reportTemplateId}}" }
You can refer to the REST API Reference Tree for other parameters.
Once we have a scheduled extraction, we can use the DSS REST API to download extracted data. Please refer to this DSS REST API: Downloading Completed Extraction Files by a Schedule Name article.