none
Modify PidLidAppointmentStateFlags RRS feed

  • Question

  • Hi community,

    we have a new question related to the modification of Named properties.

    We need to modify the PidLidAppointmentStateFlags value and set it to  asfMeeting | asfReceived ( 3).

    When we update its value, we get the following error:Item save operation did not succeed.

                var myPropertySetId2 = new Guid("00062002-0000-0000-C000-000000000046");
                var extendedPropertyDefinition13 = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Appointment, 0x8217, MapiPropertyType.Integer);  // PidLidAppointmentStateFlags, , 
                //  var extendedPropertyDefinition13 = new ExtendedPropertyDefinition(myPropertySetId2, 0x8217, MapiPropertyType.Integer);  // PidLidAppointmentStateFlags, , 
    
                appointment = Appointment.Bind(_Service, new ItemId(nmResp.ItemId.Id), new PropertySet(extendedPropertyDefinition13));
                var val13 = 3;
                appointment.SetExtendedProperty(extendedPropertyDefinition13, val13);
                appointment.Update(ConflictResolutionMode.AlwaysOverwrite, SendInvitationsOrCancellationsMode.SendToNone);
    

    Initially the value is 0 and we manage to set it to 1 or revert to 0. We're not able to set it to 3.

    However, using mfcmapi, we manage to make the change. It means that it's feasible programmatically.

    Question: how does mfcmapi proceed? Is it using outlook apis, or is it using server calls that we should be able to call succesfully as well?

    The information we have found about this flag is here : https://msdn.microsoft.com/en-us/library/ee200692(v=exchg.80).aspx


    -- Emmanuel Dreux <a href="http://www.cloudiway.com" title="IAM and migration solutions for the Cloud"> http://www.cloudiway.com</a>

    Wednesday, February 3, 2016 11:54 PM

All replies

  • We have this problem currently as well, switching to EWS rather than using MAPI resolves the issue in our case.
    Wednesday, January 18, 2017 4:35 PM
  • Hi,

    This code execute correctly but the value is not modified in MFCMAPI

     var extendedPropertyDefinition13 = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, 33303,  MapiPropertyType.Integer);  // PidLidAppointmentStateFlags, , 
                
                appointment = Appointment.Bind(cnx.ExService, new ItemId(appointment.Id.UniqueId), new PropertySet(extendedPropertyDefinition13));
                int val13 = 3;
                appointment.SetExtendedProperty(extendedPropertyDefinition13, val13);
                appointment.Update(ConflictResolutionMode.AlwaysOverwrite, SendInvitationsOrCancellationsMode.SendToNone);


    Thursday, January 26, 2017 1:02 PM