Skip to main contentInvoking workflow for an entry using the event name and event data
Log in to add to favouritesParameters
Returns
Example
1
2
3
4
5
6
7
client.entries.invokeWorkflow(existingEntry, 'draft.publish')
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call fetch error: ', error);
});
Parameters
Returns
Example
1
2
3
4
5
6
7
8
9
10
client.entries.invokeWorkflowByTrigger(existingEntry, {
event: 'sysUnpublish',
language: 'en-GB'
})
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call fetch error: ', error);
});