Skip to content

Add custom property #46

Description

@sanazyavari

Hi - I am trying to add a custom property to an email. the property value is a string and holds information. I need to use the info in an outlook add-ons after sending the email to store it in a database . I went through all propertytags to see which one I can use. but I couldn't find any that is specific to custom property (user define field). I want to create a new propertytag but then I can not set name and value. I used the code below, but I could n't open the mail after adding them.
// Add a custom property
email.AddProperty(PropertyTags.PR_AUTO_FORWARDED, true);
email.AddProperty(PropertyTags.PR_AUTO_FORWARD_COMMENT_W, "entrytype,entryID,xxx");

I appreciate if you get back to me.
Thanks,
Sanaz

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions