I essentially want to append a new field onto the JSON that I get from the trigger. If I was to just write it as a script I could just do
return {
...$trigger.payload,
new_field: "value"
}
Is there a way to do this with the “Transform Payload” operation?
Ideally I'd like to return a single object which is identical to the original just with a new field, rather than having to split them arbitrarily over two keys.
– xenobytezero