How to include the document export time to data files or database?

Question

How to include the document export time when exporting to database or to data files?

Answer

  1. Create a text field and remove the option to Show on Verification on its Properties;
    mceclip3.png


  2. Create a Script Stage with the below script and place it right after Verification Stage:
    mceclip1.png
    using System;
    Document.Field("Invoice Layout\\ExportTime").Value = DateTime.Now;
  3. As a result, the Exported files will get the Export time right before being Exported:
    mceclip2.png

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

1 comment

  • Avatar

    Samir Waikar

    This didnt work for me in excel file. Any idea?

    0

Please sign in to leave a comment.