I have a flow with a Filter (blocking) Event hook that triggers on item.Create. I want to add a field to the payload. I can seem to inject or append the new data without overwriting the existing payload. So my records are being created but missing the data from the original payload.
What am I doing wrong? And yes, it has to be a blocking action so the new field is created before the record is written.
Any help very much appreciated!


Fantastic! Thanks @Burvs. FYI here's the final result for my case: module.exports = async function (data) { return { ...data.$trigger.payload, shortcode: data.$last.id, }; };
– David_O