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.
- Create a Service Field with Image Source value for Source parameter:
-
Create an additional Text Field. Make it an Index Field.
-
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;
} -
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.
Comments
0 comments
Please sign in to leave a comment.