How can I get the Mail ID from an email?
You can use the following script in a Javascript Task.
- require("validation.js");
- task.parameters = {
- MailVariable: {
- description: "The variable containing IMailInfo mail item.",
- category: "Settings",
- type: { id: "variable", variableTypes: "object" },
- order: 1,
- validate: validation.required
- },
- MailIDVariable: {
- description: "The variable that will receive the MailId.",
- category: "Settings",
- type: { id: "variable", variableTypes: "string" },
- order: 2,
- validate: validation.required
- }
- };
- task.run = function () {
- var mi = this.variables[this.parameters.MailVariable.value].value;
- this.variables[this.parameters.MailIDVariable.value].value = mi.ID;
- };
Pass in a variable of type object with your mail item.
Get back the ID for the mail item in the variable of type string you specify in MailIDVariable.
Related Articles
Where can I find the documentation for the Receive Mail Task?
You can find documentation related to all the COZYROC SSIS+ Component Suite components from the main products page. Specific documentation for the Receive Mail Task can be found at the following link. For many of the components you can find ...
Error Message: 'ProtocolVersion' has been reported by the remote connection end
Action: When executing a package that includes Receive Mail Task component using SSL Connection Type I get the following error message: Error Message: 'ProtocolVersion' has been reported by the remote connection end Solutions: To solve your issue ...
How to get email attachments from Dynamics CRM?
The email attachment is stored in ActivityMimeAttachment entity associated by Email.ActivityID=ActivityMimeAttachment.ObjectID and ActivityMimeAttachment.ObjectTypeCode=Email
Where can I find the documentation for the Send Mail Task?
You can find documentation related to all the COZYROC SSIS+ Component Suite components from the main products page. Specific documentation for the Send Mail Task can be found at the following link. For many of the components you can find resources ...
Error Message: Unable to retrieve digital product id
Action: When opening the SSIS+ License Application, you receive the following error. Error Message: ‘Unable to retrieve digital product id’ Solution: Make sure the SQL Server registry key for SSIS is present for the version of SQL Server you are ...