How to use the date (without the time) of the document processing in the export file name?

Question

How to use the date (without the time) of the document processing in the export file name?

Answer

This can be achieved by creating the text field with the following settings:

  1. Create a new field.
  2. Enable the Index field option to allow using this field in an export file naming template tags.
  3. The field must be a text field.
    mceclip0.png
  4. The value of the field will be assigned with the script rule, so recognition for the field should be turned off.
    mceclip1.png
  5. No verification is needed for this field.
    mceclip2.png
  6. Create a script rule to get a current date, format it as required, and save the changes made to the field.
    //C# .Net
    using System;
    Context.Field("Date").Text = DateTime.Now.ToString("ddMMyyyy");
  7. Navigate to the Export destination File Namimg Template and choose the created tag from the list.

The result in ddMMyyyy format will look like this:
mceclip3.png

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.