Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I am trying to create a reusable process by which I can email the log file of the QVW when it is run.
The Log File gets generated like below as I understand. For the Document named "Generator1_QVD.qvw" the Log file gets generated as "Generator1_QVD.qvw.log"
If I can some somehow get the document name through a built in function or a variable(I am sure I can set the variable in the document myself. But that will have to be done in every qvw. Hence would like to try a reusable way to get this done for all qvw) in the script of the document, Then using that variable I can send email at the end of the load.
Please help!
Hi Kaleel,
use the
DocumentName()
function?
hope that helps
Joe
Hi,
Try DocumentName() to get the qlikview filename or if you want to get along with the path also then use DocumentPath().
Regards,
Jagan.
Thanks Joe.
This works perfectly for me.
LET vDocumentName = DocumentName();
execute cmd /C blat -to abc@abc.com -subject "Balancing Error in '$(vDocumentName)'" -body "Please check the following log" -attachi $(vDocumentName).log;
Thanks Jagan.
no worries glad to help