Hi, I'm trying to write a script to send a customized email using a template when saving an item fulfillment record.
It's a user event script, 2.0, afterSubmit, that loads the item fulfillment via context.newRecord and the merges the template using the N/render module. I'm having trouble pulling the transactionId.
I'm wondering if it's null because I'm trying to pull it on afterSubmit?
Any advice how I can get the transactionId?