Skip to main content

Get cases from Primero

This job was provided by an OpenFn.org user via the job library API.

Metadata

Key Functions

getCases, JSON

Expression

getCases({
remote: true,
case_id: "234bbac3-7278-430a-98b5-1abc460671ec" //extract 1 case using case id
//query: //...or use 'query' to filter by other criteria to get many cases
}, state => {
console.log(`Primero cases extracted: ${JSON.stringify(state.data)}`); //logging Primero response
return { ...state, data: {}, references: [] }
})