Skip to main content
October 12, 2023
Solved

Application name in Email sent from OneStream

  • October 12, 2023
  • 1 reply
  • 0 views

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!

Best answer by js11

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)

1 reply

js11Answer
October 13, 2023

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)

October 13, 2023

Worked like a charm, thank you!