I want to send Slack notifications from my CMS on every 'Submit' event. I successfully got the existing events to fire off in Slack but when I included the following code in the node modules package for apostrophe-external-notifications as follows, I do not receive any notifications.
self.notifyOn('apostrophe-workflow:afterSubmit', (req, submit) =>
['{user} submitted the {type} {title} which has these tags: {string}.', submit.from, submit.from, submit.from.tags]
);
afterSubmit
is not a server event that apostrophe-workflow emits at the moment. There's only a browser event, workflowSubmitted
, from that action.
Update 2020-03-05: This event was added as of apostrophe-workflow@2.32.0
.