none
Marking an email for followup in EWS Managed 1.1 RRS feed

  • Question

  • hi,

    Been working on a setting the flags required to mark (and unmark) an email for followup. There's lots of different examples out there - but none seems to work, at least for me.

    We are setting the properties below. Each property has been dbl-checked to be using the right id ordinal in the default extended property set. Methods are obviously extensions but all execute item.SetExtendedProperty(). All successfully can be set and the email saved. But the flag status is inoperative without Outlook. The values are saved however as they can be retrieved therafter.

    Any help appreciated.

    Msg.SetFlagStatus(2); ///

    Msg.SetFollowUpIconState(6);

    Msg.SetTodoItemFlag(1);

    Msg.SetTaskDueDateFlag(DateTime.UtcNow.AddDays(1));//tomorrow

    Msg.SetTaskStartDateFlag(DateTime.UtcNow.AddDays(1));

    Msg.SetCommonStartDateFlag(DateTime.UtcNow.AddDays(1));

    Msg.SetCommonEndDateFlag(DateTime.UtcNow.AddDays(2));

    Any ideas, anyone? A working example would be great....

    Tuesday, May 22, 2012 5:49 PM

Answers

  • This works for me

    Item itm = Item.Bind(es, "AAAAAwhatever");
    ExtendedPropertyDefinition epd = new ExtendedPropertyDefinition(0x1090, MapiPropertyType.Integer);
    itm.SetExtendedProperty(epd, 2);
    itm.Update(ConflictResolutionMode.AutoResolve);

    I don't know how this compares with the way you're trying to do it, though.


    Mobile OWA For Smartphone
    www.leederbyshire.com
    email a@t leederbyshire d.0.t c.0.m

    Wednesday, May 23, 2012 2:46 PM

All replies

  • This works for me

    Item itm = Item.Bind(es, "AAAAAwhatever");
    ExtendedPropertyDefinition epd = new ExtendedPropertyDefinition(0x1090, MapiPropertyType.Integer);
    itm.SetExtendedProperty(epd, 2);
    itm.Update(ConflictResolutionMode.AutoResolve);

    I don't know how this compares with the way you're trying to do it, though.


    Mobile OWA For Smartphone
    www.leederbyshire.com
    email a@t leederbyshire d.0.t c.0.m

    Wednesday, May 23, 2012 2:46 PM
  • Here is the way (much like above):

                Item itm = Item.Bind(Msg.Service, Msg.Id);
                ExtendedPropertyDefinition epd = new ExtendedPropertyDefinition(FlagStatusId /*0x1090*/, MapiPropertyType.Integer);
                itm.SetExtendedProperty(epd, 2);
                ExtendedPropertyDefinition epd2 = new ExtendedPropertyDefinition(.FollowUpIconId /*0x1095*/, MapiPropertyType.Integer);
                itm.SetExtendedProperty(epd2, 1);
                ExtendedPropertyDefinition epd3 = new ExtendedPropertyDefinition(TodoItemFlagId /*0x0E2B*/, MapiPropertyType.Integer);
                itm.SetExtendedProperty(epd3, 1);
                itm.Update(ConflictResolutionMode.AutoResolve);

    Set values to 0, 0, and 0 to turn off flag.

    Wednesday, May 23, 2012 6:59 PM