7px
10/27/2023, 7:05 AMtranid
is only generated after it's created, I'd like to know if there's any way to retrieve that in afterSubmit
or beforeSubmit
.
For context, I am trying to create a custom implementation of sending an email to a specified address in the Communications subtab of a PQ/E, since the current feature set of Netsuite forces an HTML-type email to be sent when checking the To Be E-Mailed
option, and we would like to instead send a PDF using the same Advanced template. While I am able to retrieve most of the data I need through a 2.1 UserEvent script, I'm stuck at getting the tranid
, since this doesn't seem to be generated in either beforeSubmit
nor afterSubmit
. I could create a custom field that checks if an email has or hasn't been sent and sends one upon being viewed, but I'd like to reduce custom field dependencies if possible.
Any and all inputs appreciated, thanks.battk
10/27/2023, 7:12 AM7px
10/27/2023, 8:14 AMrecord.load
using context.newRecord.id
seems to work. small overhead, but it works.battk
10/27/2023, 8:39 AM7px
11/03/2023, 5:29 AM