10-12-2023 06:13 PM - edited 10-12-2023 06:14 PM
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!
Solved! Go to Solution.
10-12-2023 10:43 PM
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)
10-12-2023 10:43 PM
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)
10-13-2023 09:39 AM
Worked like a charm, thank you!