shubs
02/23/2021, 4:44 PMfieldid: emailbodylayout
from the Custom Form on a user event script. Any suggestions on how I could achieve that?
I’m able to pull the custom form internal id however can’t get to the related table/join. Ex - customform.emailbodylayout
gives me errors.battk
02/23/2021, 5:10 PMshubs
02/23/2021, 5:14 PMafterSubmit
UE script that sends email with Transaction PDF.
Want to default the email body/subject to the email template that is selected on the transaction form.
By using render.mergeEmail({ templateId: <REQUIRED>, transactionId: <REQUIRED>})
I’m able to get the email body/subject but I want to dynamically source the templateId
from the transaction form.
Hopefully, that makes sense.battk
02/23/2021, 5:18 PMSciuridae54696d
02/23/2021, 5:18 PMshubs
02/23/2021, 5:19 PMshubs
02/23/2021, 5:19 PMemailbodylayout
associated with the form to show up. it errors out.shubs
02/23/2021, 5:20 PMSciuridae54696d
02/23/2021, 5:20 PMSciuridae54696d
02/23/2021, 5:20 PMSciuridae54696d
02/23/2021, 5:21 PMSciuridae54696d
02/23/2021, 5:22 PMshubs
02/23/2021, 5:22 PMcustomform
I’m trying to do the join to source the default email template associated with the email form.Sciuridae54696d
02/23/2021, 5:22 PMshubs
02/23/2021, 5:22 PMSciuridae54696d
02/23/2021, 5:23 PMSciuridae54696d
02/23/2021, 5:23 PMshubs
02/23/2021, 5:23 PMemailbodylayout
battk
02/23/2021, 5:23 PMbattk
02/23/2021, 5:24 PMSciuridae54696d
02/23/2021, 5:24 PMSciuridae54696d
02/23/2021, 5:24 PMSciuridae54696d
02/23/2021, 5:25 PMshubs
02/23/2021, 5:26 PM// Render template to get Email Subject and Body
var template = render.mergeEmail({
templateId: EMAIL_TEMPLATE_ID,
transactionId: rec.id,
});
options.subject = template.subject;
options.body = template.body;
I’ll see if I can not include templateId and see if it defaults to the transactionId form.Sciuridae54696d
02/23/2021, 5:26 PMSciuridae54696d
02/23/2021, 5:27 PMSciuridae54696d
02/23/2021, 5:28 PMshubs
02/23/2021, 5:28 PMrender.doMergeEmail: Missing a required argument: options.templateId
shubs
02/23/2021, 5:28 PM