Using Scripts on Custom Emails Templates

Using Scripts on Custom Emails Templates

Users can access a script within a custom email template to pull in necessary data. In the example below, our client created a custom email template that could be sent out from an ASN record within Infoplus. They needed a script to do two things: first, it grabs the contact information from the associated vendor record. Next, it pulls in data (item category for example) that can then be used in the body of the email. 


Due to the ever-changing nature of writing and maintaining scripts, Infoplus does not provide support in this area. We recommend someone in your IT Department handles scripting requests internally so that you keep all control over the process.


You can add the script to the custom email template and then utilize $!{scriptOutput.xxxx}. The '!' will only add a value if it finds one and prevent errors.