locked
How to add Appointment Contacts RRS feed

  • Question

  • Hi All,


    Can anybody advise on howto add contacts in appointment? Is this another extended property?


    Regards,
    Gesley
    Thursday, April 2, 2009 2:45 AM

Answers

  • solve the problem:

    ExtendedPropertyType contacts = new ExtendedPropertyType();
                        contacts.ExtendedFieldURI = property;
                        String[] str = new String[] { "abc","def"};
                        NonEmptyArrayOfPropertyValuesType type = new NonEmptyArrayOfPropertyValuesType();
                        type.Items = str;
                        contacts.Item = type;
    • Marked as answer by gesley Thursday, April 2, 2009 7:46 AM
    Thursday, April 2, 2009 7:46 AM

All replies

  • property = new PathToExtendedFieldType();
                        property.DistinguishedPropertySetId = DistinguishedPropertySetType.Appointment;
                        Guid mapiGuid = new Guid("{00062002-0000-0000-C000-000000000046}");
                        property.PropertySetId = mapiGuid.ToString();
                        property.PropertyId = 0x853A;
                        property.PropertyIdSpecified = true;
                        property.PropertyType = MapiPropertyTypeType.StringArray;

                        ExtendedPropertyType contacts = new ExtendedPropertyType();
                        contacts.ExtendedFieldURI = property;
                        string[] str = new string[]{"abc","def"};
                        contacts.Item = str;
                        appointment.ExtendedProperty[0] = contacts;


    but I encountered error: says XML syntax incorrect...seems the stringarray in item is not recognized..
    What is the correct syntax in assigning contact.item?
    Thursday, April 2, 2009 3:58 AM
  • solve the problem:

    ExtendedPropertyType contacts = new ExtendedPropertyType();
                        contacts.ExtendedFieldURI = property;
                        String[] str = new String[] { "abc","def"};
                        NonEmptyArrayOfPropertyValuesType type = new NonEmptyArrayOfPropertyValuesType();
                        type.Items = str;
                        contacts.Item = type;
    • Marked as answer by gesley Thursday, April 2, 2009 7:46 AM
    Thursday, April 2, 2009 7:46 AM