My goal is to create a .pst file with contact items formatted at my will, to be imported in Outlook.
When creating contact items using Java MapiContact class, I have a problem setting the “Display as” field in a contact item. Successfully calling
MapiContact contact = new MapiContact("firstname surname", "email@example.com")
and then saving the contact to a .pst file, I encounter this problem importing it to Outlook:
Full namebecomes: “firstname surname” (fine)
File asbecomes: “surname, firstname” (fine)
Display asbecomes “firstname surname (firstname.lastname@example.org) (email@example.com)” (bad: email address twice!)
I want to be able to set the
Display as field explicitly.
The version used is 19.2.