Application name in Email sent from OneStream

JShoemaker
New Contributor III

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!

1 ACCEPTED SOLUTION

js11
New Contributor II

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)

View solution in original post

2 REPLIES 2

js11
New Contributor II

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)

JShoemaker
New Contributor III

Worked like a charm, thank you!