How to get a source filename and save it as a field value?

Question

How to save the filename of the imported file in the field? 

Answer

It is possible to get a source filename and write a value to a field in the Custom activity. For example:


Context.Transaction.Documents[0].GetField("New Field").Value = Context.Transaction.Documents[0].SourceFiles[0].FileName;

The result:

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request