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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
su_pyae
Creator
Creator

How to capture the time when the input file is created/updated? (Not data reload time())

Hello everyone, 

I have a question. I would like to know if it is possible to capture the timestamp of the input file (like when it's created/updated). 

I don't want the data reload time because I want to monitor whether we are using the old files or not for the data. 

For example, if I am using a QVD file as an input in April but that file was created in Mar, it means I am using the old QVD file. 

Thank you!

Labels (2)
1 Solution

Accepted Solutions
vchuprina
Specialist
Specialist

Hi, 

You can use filetime and qvdcreatetime functions

https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/FileFun...

https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/FileFun...

Regards,

Vitalii

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").

View solution in original post

3 Replies
vchuprina
Specialist
Specialist

Hi, 

You can use filetime and qvdcreatetime functions

https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/FileFun...

https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/FileFun...

Regards,

Vitalii

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
vchuprina
Specialist
Specialist

For Excel files you can use macro

https://community.qlik.com/t5/QlikView-App-Dev/time-and-date-of-created-file-much-like-filetime/td-p...

vchuprina_1-1650361128903.png

vchuprina_2-1650361157024.png

 

Once you add it to your document, you can use it as a function

vchuprina_0-1650361008723.png

And for QVD I think it's not possible to know when the file was created, but you can track changes if you need.

As in example below

https://support.qlik.com/articles/000010330

Regards,

Vitalii

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
su_pyae
Creator
Creator
Author

Thank you. 

I was able to use the filetime to get what I need.