Question
Is it possible to get an email sender as a document field value if import from email is used in Vantage?
Answer
- In a Document Skill add a new text field, and name it Email Sender.
- Open a Process Skill (where the Document skill is being used) in the editor.
- Add the Custom activity into the pipeline (after the Extract activity).
- In the Custom activity use the following code:
if (Context.Transaction.RegistrationParameters["EmailSender"] != null)
{
for (var i = 0; i < Context.Transaction.Documents.length; i++)
{
var document = Context.Transaction.Documents[i];
document.GetField("Email Sender").Value = Context.Transaction.RegistrationParameters["EmailSender"].Value;
}
}
Comments
0 comments
Please sign in to leave a comment.