Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

Request Vitas Sync

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

Metadata​

  • Name: Request Vitas Sync
  • Adaptor: @openfn/language-http
  • Adaptor Version: v3.1.7
  • Created over 5 years ago
  • Updated about 5 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') },
})
);