Skip to main content

Extract submissions from KoboToolbox

📜 This job is an official example from OpenFn.

Metadata​

Key Functions​

each, getForms

Expression​

//Get all Kobo forms/projects, and then get form submissions
//that were submitted after a specific time
cursor($.cursor, { defaultValue: 'today' });

getForms();

each(
$.data,
getSubmissions($.data.uid, {
query: `{"_submission_time":{"$gte":"${$.cursor}"}}`,
})
);