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:

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.