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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Last Saved Date and timestamp

Hello,

I have a document that reloads every twenty minutes. I am looking for a way to flag the "new data" and I want to use the date that the docement was last saved. Is there a way to call this date and timestamp.

Any help would be appreciated.

Thanks,

Jeff

1 Reply
Not applicable
Author

The best solution is to use the timestamp when the script start running, to avoid any conflict if some records are changed during the document reload. An example:

Let ThisExecTime = Now( );

QV_Table:
SQL SELECT PrimaryKey, X, Y FROM DB_TABLE
WHERE ModificationTime >= #$(LastExecTime)#
AND ModificationTime < #$(ThisExecTime)#;

If ScriptErrorCount = 0 then
   STORE QV_Table INTO File.QVD;
   Let LastExecTime = ThisExecTime;
End If