How to change the name of the Export File if export runs using FlexiCapture Connect

Question

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

Answer

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):



    Script:

    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.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed