Hi,
Is it possible to use the automation's engine methods inside a QAction?
I'd like to use some methods (e.g. SendEmail) in the Engine class (part of the Skyline.DataMiner.Automation library).
I have done the followings my QAction:
- Installed the Skyline.DataMiner.Dev.Automation NuGet package
- Imported the library (using Skyline.DataMiner.Automation;)
- Declared the engine object (Engine engine = new Engine();)
- Called the method (engine.SendEmail();)
But it failed. Errors in the Element log says:
The type or namespace name 'Engine' could not be found (are you missing a using directive or an assembly reference?)
Thanks!
Hi Trong,
This is not possible.
Or you can run an automation script that will send an email from your QAction (see Method ExecuteScript) or you can use some .Net functionality (see post Sending email with attachement from a QAction)
Do note that the Skyline.DataMiner.Dev.Automation package is filtered out by DIS when compiling the protocol as it is not useable.