Request Vitas Sync
Metadata
- Name: Request Vitas Sync
- Adaptor:
@openfn/language-http
- Adaptor Version:
v3.1.7
- Created over 3 years ago
- Updated about 3 years ago
- Score: 0 (an indicator of how useful this job may be)
Key Functions
alterState
, dataPath
, dataValue
, each
, post
Expression
alterState(state => {
const vitasSystemsToCheck = [
'vitas-1',
'thatMinistry-vitas-7',
'3',
'4',
'5',
]
return { ...state, data: { vitasSystemsToCheck } };
});
each(
dataPath('vitasSystemsToCheck[*]'),
post(state.configuration.inboxUrl, {
body: { "db": dataValue('database-id') },
})
);