Table of Contents

Method PrepareMailReport

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

PrepareMailReport(string)

Returns a MailReportOptions object, which you can use to configure and launch an email report.

MailReportOptions PrepareMailReport(string mailReport)

Parameters

mailReport string

The full name of the dashboard (including all parent folders separated with '/') or the name of the report template (legacy Reporter) to be used.

Returns

MailReportOptions

The MailReportOptions object.

Examples

MailReportOptions reportOptions;
reportOptions = engine.PrepareMailReport("myReportTemplate");
reportOptions.EmailOptions.SendAsPlainText = true;
...
engine.SendReport(reportOptions);

Exceptions

ArgumentException

mailReport is null or the empty string ("").