Skip to main content

Invoking workflow for an entry using the event name and event data

Log in to add to favourites

Parameters

Returns

Example

JAVASCRIPT
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

JAVASCRIPT
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); });

Still need help?

New support request