Actions18
- Analytics Actions
- Data Value Set Actions
- Enrollment Actions
- Event Actions
- FHIR Actions
- Organisation Unit Actions
- Program Actions
- Tracked Entity Actions
Data Value Set → Push
AI-generatedSummary
Posts a data value set payload to DHIS2's /api/dataValueSets.json endpoint to import aggregate data values, once per input item.
Inputs
- dataValues (required) — JSON payload for the data value set (the UI says it must include dataSet, period, orgUnit, and a dataValues array). Accepts a JSON string or an object (e.g. from an expression). It is parsed and sent unchanged as the POST body.
Output shape
For each input item, the node POSTs once. If the DHIS2 response contains a top-level dataValues array, each element becomes its own output item. Otherwise the whole response, such as the import summary with status and counts, is returned as a single item.
Authenticates with the dhis2Api credential, using its baseUrl. Invalid JSON or an HTTP error throws a NodeApiError. With Continue On Fail enabled, an item with an
errormessage is returned instead. The node does not validate the payload fields itself, and no query parameters such as dryRun or importStrategy are sent.
Examples
Example 1: Submit monthly facility report values to a data set
Data Values (JSON): {"dataSet":"DS_UID","period":"202501","orgUnit":"OU_UID","dataValues":[{"dataElement":"DE_UID","value":"42"}]}
Example 2: Push values built by an earlier node
Data Values (JSON) set to the expression {{ $json.payload }}, so each incoming item is pushed as its own data value set.