How to use the original file name in the name of the Export File if export runs using FlexiCapture Connect


Is it possible to use the name of the Source File in the Export File's filename if the export runs using FlexiCapture Connect?


By design, FlexiCapture Connect does not pass the name of the Source File, so it can not be used in the Export File's filename. However, there is a workaround.

  1. Create a Service Field with Image Source value for Source parameter:
  2. Create an additional Text Field. Make it an Index Field.

  3. Add a Script Rule which will copy the value from the Service Field to this Text Field (in the example, the name of the Text Field is imagesource):


    using System;
    using System.IO;

    if (Context.Field("Service Field").Text != "") {
    Context.Field("imagesource").Text = Context.Field("Service Field").Text;
  4. Set the Export Template Tag based on this Text Field:

This way, the name of the Source File can be used in the name of the Export File.

Have more questions? Submit a request



Please sign in to leave a comment.