Is there a way to schedule a report and have it automatically output to a file? The use case it to automatically import the data into a data warehouse from the output file.
To break it down to separate questions:
How to schedule a report (pulse?)
How to automatically write or append a report to an existing file for import by another program.
Hi @markd
You can perhaps use a service, which converts email attachments (CSV) to your warehouse.
Or use the API to manually get question data based on your own schedule.
Either way, you have to be a little creative yourself - there's no two-clicks-and-you're-done function.
I'm assuming that there is a way to call an API to run the report/question and receive data back from that - is that correct? That task could be run on a schedule, which will receive the data and write it to a log file.
If so, could you point me to an example of it? e.g. using curl or python? I'll also check myself, but it would be nice to have your confirmation.
1- Card and Question are the same thing. For more accurate results work with card_id as it's unique (although if you work with card_name and there are more than one card with that name, a ValueError is raised).
2- Correct
3- Correct. This was added recently and tested with Native queries (filter_variable_name is the name you use inside [[ {{}} ]], this example may help). Some changes may be needed for Simple/Custom Queries.