JShoemaker
2 years agoNew Contributor III
Application name in Email sent from OneStream
Hi,
We are using the following when we send out the automated email, and it works just fine. However is there a way to include the application name in the email? Reason being we would like the users (some who have access to Dev etc to be able to decipher from production application.
BRApi.Utilities.SendMail(si, "OneStreamEmail", toEmail, "SAP Load Automation Errors in: " & gTime, "Please see the attachment for error details.", attachments)
Thanks!
Try using si.AppName to get the current application name. You can then add it to the body of your email like so.
BRApi.Utilities.SendMail(si, "OneStreamEmail", toEmail, "SAP Load Automation Errors in: " & gTime, "Please see the attachment for error details. Sent from " & si.AppName, attachments)