简体   繁体   English

Outlook Web App 不显示联系人姓名

[英]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.

相关问题 应用程序链接不会在 outlook email 中触发 - App linking doesn't trigger in outlook email 即使已创建正确的注册表,Outlook加载项也不会加载,也不会显示为禁用或非活动状态 - Outlook addin doesn't load and also doesn't show as disable or inactive, even though correct registry was created 联络表格无效 - Contact form doesn't work C#VSTO Outlook 2007:如何通过EntryID显示联系人 - C# VSTO Outlook 2007: How to show contact by EntryID 从Outlook联系人卡中以编程方式读取经理的姓名 - Programmatically read manager's name from the outlook contact card 联系表格无效,“值不能为null。 参数名称:地址” MVC5 - Contact form doesn't work, “Value cannot be null. Parameter name: address” MVC5 使用 msgkit 将 eml 转换为 msg 时,Outlook 不会在预览中显示日期 - Outlook doesn't show date on the preview when eml is converted to msg using msgkit 从任何外部应用程序启动作曲家窗口时,Outlook插件均不显示 - Outlook addin doesn't show when composer window is launched from from any external application 为什么控制台应用程序可以工作,但Web应用程序不能用于HttpResponseMessage? - Why console app works but web app doesn't for HttpResponseMessage? 网页中的ActiveX不起作用(显示为损坏的图像) - ActiveX in web page doesn't work (show as broken image)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM