pmaengineering / centralpy

An ODK Central command-line tool
MIT License
2 stars 2 forks source link

Adding submission filter to pullcsv #1

Open Aworwui opened 2 years ago

Aworwui commented 2 years ago

Hi Kindly wish to suggest adding the filter part of the ODK Central API to the pullcsv to select the submission to download. Any suggestion on how I can add this option

jkpr commented 2 years ago

You would like to download a specific submission? Try this command: https://github.com/pmaengineering/centralpy#subcommand-download-attachments

You want the XML submission, not the attachments though, right? But the process should be done in a similar way?

Aworwui commented 2 years ago

Thanks, However, download-attachment need the instance-id. My issue is the export submissions created within a given date range. e.g. submissions created every month or from the last export
example of the filer is ?%24filter=(system/submissionDate gt or system/updatedAt gt ) and __system/reviewState="Approved"