Custom Workflow Actions: POST_ACTION_EXECUTION function

I’m working on a custom workflow action, and cannot find documentation on the POST_ACTION_EXECUTION function type.

There is documentation about PRE_ACTION_EXECUTION, PRE_FETCH_OPTIONS, and POST_FETCH_OPTIONS functions here, and POST_ACTION_EXECUTION appears as a valid enum in the APIs (for instance here), but neither Claude nor I could find documentation on the event and callback shape.

I want to know what data is included in the event and required in the callback so that I can write my function accordingly.

Thanks!

Hey @CHarro,

Thanks for bringing this to the community!

If you find this may be missing from our documentation, for future reference you can submit this feedback via the Developer Feedback form!

In the meantime, I’d like to tag in some of our Top Contributors to see if they have any tips and tricks on this!

Hey @evaldas, @Anton, @GRajput – Do you have any suggestions for @CHarro on this?

Sam, Community Manager

Indeed, there doesn’t look to be much documentation but I did find a Github that used it:

actions:PublicActionFunction publicActionFunction = {
    functionSource: "exports.main = (event, callback) => {\r\n  callback({\r\n    outputFields: {\r\n      myOutput: \"example output value\"\r\n    }\r\n  });\r\n}",
    functionType: "POST_ACTION_EXECUTION"
};

This post also has an example: