[英]Outlook Web App doesn't show contact name
I'm working on a CRM application to sync CRM data to Exchange using a service I'm writing in C#.我正在开发一个 CRM 应用程序,使用我在 C# 中编写的服务将 CRM 数据同步到 Exchange。 After instiating the EWS connection:建立 EWS 连接后:
ExchangeService es = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
es.AutodiscoverUrl("SamGam@TheShire.com");
I can create a contact and edit the details:我可以创建联系人并编辑详细信息:
...
Contact contact = new Contact(es);
contact.GivenName = "Samwise";
contact.Surname = "Gamgee";
contact.DisplayName = "Samwise Gamgee";
...
Then save it然后保存
...
contact.Save();
And now it will appear in the user's exchange contact mailbox.现在它将出现在用户的交换联系人邮箱中。 In the desktop version of Outlook it looks ok:在桌面版 Outlook 中,它看起来没问题:
But in the Outlook web app I see this:但在 Outlook Web 应用程序中,我看到了这一点:
Not showing the name and having Untitled Contact eliminates any usability for a real user.不显示姓名和无标题联系人消除了真实用户的任何可用性。 If I double click on the contact in the list to edit the details I get this showing the First name and Last name.如果我双击列表中的联系人以编辑详细信息,我会看到显示名字和姓氏的信息。
And then if I save it the name will appear in the contact list and view details.然后,如果我保存它,该名称将出现在联系人列表中并查看详细信息。
Is there anything I can do to have it appear in the list automatically for users who use the outlook web app?对于使用 Outlook Web 应用程序的用户,我可以做些什么让它自动出现在列表中?
Thanks!谢谢!
You should be setting the FileAs mapping and I would also always set the Subject field to the displayname as this can also cause problems eg您应该设置 FileAs 映射,我也会始终将主题字段设置为显示名称,因为这也会导致问题,例如
contact.FileAsMapping = FileAsMapping.SurnameCommaGivenName;
contact.Subject = "Samwise Gamgee";
On 2013 and Office365 there is also a few other properties you should set see https://social.msdn.microsoft.com/Forums/sqlserver/en-US/90d7e749-977e-4191-87cf-725007a326b4/contacts-created-by-ews-v20-are-visible-in-outlook-but-not-in-owa-in-office-365?forum=exchangesvrdevelopment在 2013 和 Office365 上,您还应该设置一些其他属性,请参阅https://social.msdn.microsoft.com/Forums/sqlserver/en-US/90d7e749-977e-4191-87cf-725007a326b4/contacts-created-by -ews-v20-are-visible-in-outlook-but-not-in-owa-in-office-365?forum=exchangesvrdevelopment
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.