Hi,
We've customized the ribbon xml for the Opportunity form in a CRM 2013 online org. It hides/shows the "Close as Won" button based on the value returned within some javascript form onload function. Our solution works great
from IE, but when an Opportunity is opened with the CRM Outlook client (we tried several versions), the command bar on the form does not appear. One thing we noticed is that if we manually make a change on the form and then save, the command bar then appears.
We've made similar customizations for customers in CRM 2011 without issues. Is there a different approach to making this work in CRM 2013? Below are the ribbon xml changes we made on the Opportunity entity. Any help would be greatly
appreciated!
<RibbonDiffXml>
<CustomActions />
<Templates>
<RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
</Templates>
<CommandDefinitions>
<CommandDefinition Id="Mscrm.Form.opportunity.MarkAsWon">
<EnableRules>
<EnableRule Id="disablebuttons" />
</EnableRules>
<DisplayRules>
<DisplayRule Id="Mscrm.CanWriteOpportunity" />
</DisplayRules>
<Actions>
<JavaScriptFunction FunctionName="Mscrm.CommandBarActions.opportunityClose" Library="/_static/_common/scripts/CommandBarActions.js">
<BoolParameter Value="true" />
</JavaScriptFunction>
</Actions>
</CommandDefinition>
</CommandDefinitions>
<RuleDefinitions>
<TabDisplayRules />
<DisplayRules />
<EnableRules>
<EnableRule Id="disablebuttons">
<CustomRule Library="$webresource:new_MyScript" FunctionName="MyFunction" Default="false"></CustomRule>
</EnableRule>
</EnableRules>
</RuleDefinitions>
<LocLabels />
</RibbonDiffXml>