How to get an email sender in Vantage?

Question

Is it possible to get an email sender as a document field value if import from email is used in Vantage?

Answer

  1. In a Document Skill add a new text field, and name it Email Sender.
  2. Open a Process Skill (where the Document skill is being used) in the editor.
  3. Add the Custom activity into the pipeline (after the Extract activity).
  4. 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; 
}
}

 

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.