I would like to get the HTML output of the logging file's XSL transform and include it as the BODY (not attachment) of an email.
Is there a way to do this? Right now, I'm having a hard time finding the logging file at all!
TIA
I would like to get the HTML output of the logging file's XSL transform and include it as the BODY (not attachment) of an email.
Is there a way to do this? Right now, I'm having a hard time finding the logging file at all!
TIA
Hi Ian,
You should be able to do this by using a sequence of three actions. You’ll need to define a variable to hold the exported log contents.
1) Export Log - to export the current log to an HTML file.
2) Read Text File - to read the contents of the HTML file into an Automise variable.
3) Send Email, referencing the variable in the body of the email message, ie %MyVariable%.
… the only catch here is that if you want to put other information into the log, the exported log is already a complete HTML document.
To trim it, the best option is probably to create your own custom XSL stylesheet, which is a cut-down version of the standard “HTML” stylesheet, so that only the content fragment is included. Then you can add your own markup around the log output, inside the Send Email action.
Please let us know if you need more information in order to get this working.
- Angus