Get cases from Primero
Metadata
- Name: Get cases from Primero
- Adaptor:
@openfn/language-primero
- Adaptor Version:
v2.2.8
- Created about 3 years ago
- Updated about 3 years ago
- Score: 0 (an indicator of how useful this job may be)
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: [] }
})