How to set a flag for AppointmentItem of Outlook RRS feed

  • Question


    Hello everyone


    Now I am working on synchronizing appointments and contacts of outlook with my CRM. I need set a flag for appointment and contact item of outlook. I know there are user fields for OutlookItems. Is there any user fields for AppointmentItem? If there is no this kind of user field, how can I add a flag or something to my AppointmentItem.


    Thanks in advance.

    Wednesday, September 17, 2008 4:22 AM


  • I know the answer. We can use the UserProperties of AppointmentItem to create uer defined field. The code shows below.


    UserProperty propModifyTime = AppointmentItem.UserProperties.Add("LastUpdate", Microsoft.Office.Interop.Outlook.OlUserPropertyType.olDateTime, false, null);

    propModifyTime.Value = a.LastModificationTime;


    Thursday, September 18, 2008 12:02 PM