CRM 2011 Outlook Client-有关强制性的设置 [英] Crm 2011 outlook client - Set regarding mandatory

查看:80
本文介绍了CRM 2011 Outlook Client-有关强制性的设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的客户使用的是Microsoft CRM 2011 Outlook客户,他们有独特的业务需求.他们希望使用Outlook发送电子邮件的所有员工都必须执行关于设置"(怪异吧?).如果用户在发送电子邮件时忘记设置有关,Outlook将显示一条通知消息,并且不应该让用户发送电子邮件.

Our client is using Microsoft CRM 2011 outlook client and they have a unique business need. They want to make the "Set Regarding" mandatory for all of their employees using outlook to send emails (Weird huh?). If a user while sending the email forget to set regarding, outlook should display a notification message and shouldn't let the user send the email.

我无法为此找到任何开箱即用的功能,因此我决定编写一个Outlook插件.有没有一种方法可以在Outlook addin ItemSend事件中知道邮件项具有为关于"字段设置的值?我可以看到包含CRM:xxxxx的电子邮件的主题,但是由于尚未在CRM中创建电子邮件,因此我不知道如何提取相关数据.

I have not been able to find any out of the box feature for this so I decided to write an outlook addin. Is there a way to know in outlook addin ItemSend event that the mail item has the value set for regarding field? I can get the subject of the email including CRM:xxxxx but since the email is not yet created in CRM I don't know how to pull the regarding data.

推荐答案

有关跟踪的信息存储在邮件的MAPI属性中.请参阅随附的屏幕截图.应该可以在ItemSend事件中访问它们.

The information about the tracking are stored in the MAPI-properties of the mail. See the attached screenshot. They should be accessible in the ItemSend event.

您可以这样获得此信息(来自@Ahmeds评论)

You could get this information like this (from @Ahmeds comment)

dynamic regardingId = mailItem.PropertyAccessor.GetProperty("schemas.microsoft.com/mapi/string/‌​;{00020329-0000-0000-C000-000000000046}/crmRegardingId/0x0000001F");

这篇关于CRM 2011 Outlook Client-有关强制性的设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆