Xml 将打开电子邮件客户端的按钮添加到MS CRM 2011功能区

Xml 将打开电子邮件客户端的按钮添加到MS CRM 2011功能区,xml,dynamics-crm-2011,Xml,Dynamics Crm 2011,我需要在MS CRM 2011功能区上添加“使用默认客户端发送电子邮件”按钮 我已将以下部分添加到customizations.xml <CustomActions> <CustomAction Id="Company.{!EntityLogicalName}.MainTab.ContactSupport.CustomAction" Location="Mscrm.HomepageGrid.{!EntityLogicalName}.MainT

我需要在MS CRM 2011功能区上添加“使用默认客户端发送电子邮件”按钮

我已将以下部分添加到
customizations.xml

<CustomActions>
  <CustomAction Id="Company.{!EntityLogicalName}.MainTab.ContactSupport.CustomAction"
                Location="Mscrm.HomepageGrid.{!EntityLogicalName}.MainTab.ExportData.Controls._children"
                Sequence="72">
    <CommandUIDefinition>
      <Button Id="Company.{!EntityLogicalName}.MainTab.ContactSupport.Button"
              Command="Company.all.MainTab.HelpGroup.ContactSupport.Command"
              LabelText="Contact Support"
              ToolTipTitle="Contact project support via e-mail"
              ToolTipDescription="Contact project support via e-mail"
              TemplateAlias="o3"
              Image16by16="/_imgs/ribbon/senddirectmail_16.png"
              Image32by32="/_imgs/ribbon/senddirectmail_32.png" />
    </CommandUIDefinition>
  </CustomAction>
</CustomActions>
...
...
...
<CommandDefinitions>
  <CommandDefinition Id="Company.all.MainTab.HelpGroup.ContactSupport.Command">
    <EnableRules />
    <DisplayRules />
    <Actions>
      <Url Address="mailto:Support@support.com" />
    </Actions>
  </CommandDefinition>
</CommandDefinitions>

...
...
...
它是有效的。但是,单击按钮会打开新窗口。它保持为空,因为它不需要显示-只需调用电子邮件客户端即可

有什么解决办法吗?如何在不打开新窗口的情况下启动电子邮件客户端?

找到了一个解决方案

将您的操作更改为JavaScript操作,如:


contactsupport
功能将是:

函数contactsupport(){
location.href='mailto:Support@support.com';
}
看起来CRM中的设置
location.href
不会更改url,但可以启动与
mailto


通过IE 9、Chrome 27和Firefox 21的测试,Firefox 21是一个Internet Explorer问题,与IE无关CRM@Guido我主要使用Firefox。在两种浏览器中的行为都是相同的。好的,这个按钮在哪里?在主页内,b仅为选定实体提供导出工具?它位于主应用程序功能区上的每个实体上,靠近“高级查找”按钮。最右边的位置。