Skip to main content
Contributor
Oct 12, 2023 10:13 PM UTC
Solved

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!

js11Answer
OneStream Employee
Oct 13, 2023 2:43 AM UTC

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)

2 replies

js11OneStream EmployeeAnswer
OneStream Employee
Oct 13, 2023 2:43 AM UTC

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)

Contributor
Oct 13, 2023 1:39 PM UTC

Worked like a charm, thank you!