For adding photos, please use the Contact.Photo.Data property for setting image data. For fetching the information, you need to get it using:
For the missing properties, following are our findings:
1. Following information could not be fetched using the Contact object from Exchange server and this issue has been logged as EMAILNET-38558 for further investigation by our Product team.
- Physical Address Fields for Work, Home and Other addresses: Address, Country Code and IsMailingAddress, post office box
2. Following fields information could not be found in Contact class and have been forwarded to our Product team as EMAILNET-38559 for further feedback. Among these, the Gender property is not implemented and needs implementation.
3. Conversion from MapiContact to Contact and back does not support extended properties yet. Extended properties support is new feature and it will take time for completion. Moreover, since properties such as UserFeiild1-4 are rarely used, we have plans to make them accessible via extended properties only instead of making them proper properties of Contact. You can mention if you need any further properties in this regard.
With respect to your requirement of Unit test requirement with Contact, we have identified the following properties as alternative to that of MapiContact. However, please note that these don’t include the ones mentioned in step 2 above.
- MapiContactNameInfoSurname - Please use Contact.Surname
- MapiContactNameInfoMiddleName - Please use Contact.MiddleName
- MapiContactNameInfoDisplayName - Use Contact.DisplayName
- MapiContactPersonalInfoAccount - Use Contact.Account (currently this property is not working)
- MapiContactPersonalInfoLanguage - Use Contact.Language instead
- MapiContactPersonalInfoNotes - Use Contact.Notes instead
- MapiContactPersonalInfoSpouseName - Use Contact.AssocaitedPerson.Spouse
- MapiContactEventsBirthday - Use Contact.Events.Birthday
- MapiContactEventsWeddingAnniversary - Use Contact.Events.Anniversary
- MapiContactProfessionalInfoCompanyName - Use Contact.Companyname
- MapiContactProfessionalInfoDepartmentName - Use Contact.DepartmentName
- MapiContactProfessionalInfoProfession - Use Contact.Profession
- MapiContactProfessionalInfoTitle - Use Contact.JobTitle
- MapiContactPhysicalAddressesWorkAddress - Use ContactAddress.WorkAddress
- MapiContactPhysicalAddressesHomeAddress - Use Contact.PhysicalAddresses.HomeAddress
- MapiContactPhysicalAddressesOtherAddress - Use Contact.PhysicalAddresses.OtherAddress
- MapiContactTelephonesMobileTelephoneNumber - Use Contact.PhoneNumbers.Mobile
- MapiContactTelephonesHomeTelephoneNumber - Use Contact.PhoneNumbers.Home
- MapiContactTelephonesPagerTelephoneNumber - Use Contact.PhoneNumbers.Pager