Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Getting document name within a document

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!

1 Solution

Accepted Solutions
Not applicable
Author

Hi Kaleel,

use the

DocumentName()

function?

hope that helps

Joe

View solution in original post

5 Replies
Not applicable
Author

Hi Kaleel,

use the

DocumentName()

function?

hope that helps

Joe

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try DocumentName() to get the qlikview filename or if you want to get along with the path also then use DocumentPath().

Regards,

Jagan.

Not applicable
Author

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;

Not applicable
Author

Thanks Jagan.

Not applicable
Author

no worries glad to help