Hi Andew,
I have taken the custom function and added the command to the button, still no results. When I press the button. nothing pops up. Here is the full XML:
<RibbonDiffXml>
<CustomActions>
<CustomAction Id="va.Mscrm.Form.salesorder.FulfillOrder.CustomAction" Location="Mscrm.Form.salesorder.MainTab.Actions.Controls._children" Sequence="10">
<CommandUIDefinition>
<Button Alt="$Resources:Ribbon.Form.salesorder.MainTab.Actions.salesorder.FulfillOrder" Command="Mscrm.Form.salesorder.FulfillOrder" Id="Mscrm.Form.salesorder.FulfillOrder" Image32by32="/_imgs/SFA/FulfillOrder_32.png" Image16by16="/_imgs/SFA/FulfillOrder_16.png" LabelText="$Resources:Ribbon.Form.salesorder.MainTab.Actions.salesorder.FulfillOrder" Sequence="10" TemplateAlias="o2" ToolTipTitle="$Resources:Mscrm_Form_salesorder_MainTab_Actions_FulfillOrder_ToolTipTitle" ToolTipDescription="$Resources:Mscrm_Form_salesorder_MainTab_Actions_FulfillOrder_ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
</CustomActions>
<Templates>
<RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
</Templates>
<CommandDefinitions>
<CommandDefinition Id="Mscrm.Form.salesorder.CancelOrder">
<EnableRules>
<EnableRule Id="Mscrm.FormStateNotNew" />
<EnableRule Id="Mscrm.salesorder.CanOrderBeCancelled" />
</EnableRules>
<DisplayRules>
<DisplayRule Id="Mscrm.CanWritePrimary" />
</DisplayRules>
<Actions>
<JavaScriptFunction FunctionName="closeOrder" Library="/_static/sfa/salesorder/salesorder.js" />
<JavaScriptFunction FunctionName="cancelOrderRibbonButton" Library="$webresource:va_CheckIfActiveOrInactiveRecord">
<IntParameter Value="26" />
</JavaScriptFunction>
</Actions>
</CommandDefinition>
<CommandDefinition Id="Mscrm.Form.salesorder.FulfillOrder">
<EnableRules>
<EnableRule Id="Mscrm.FormStateExisting" />
<EnableRule Id="Mscrm.SalesorderIsActive" />
</EnableRules>
<DisplayRules>
<DisplayRule Id="Mscrm.CanWritePrimary" />
<DisplayRule Id="Mscrm.IsBackOfficeNotInstalled" />
</DisplayRules>
<Actions>
<JavaScriptFunction FunctionName="fulfillOrder" Library="/_static/sfa/salesorder/salesorder.js" />
</Actions>
</CommandDefinition>
<CommandDefinition Id="Mscrm.ReportMenu.Form">
<EnableRules>
<EnableRule Id="Mscrm.FormStateNotNew" />
<EnableRule Id="va.salesorder.EnableRule0.EnableRule" />
</EnableRules>
<DisplayRules>
<DisplayRule Id="Mscrm.ReadReport" />
</DisplayRules>
<Actions />
</CommandDefinition>
</CommandDefinitions>
<RuleDefinitions>
<TabDisplayRules />
<DisplayRules>
<DisplayRule Id="Mscrm.CanWritePrimary">
<EntityPrivilegeRule PrivilegeType="Write" PrivilegeDepth="Basic" AppliesTo="PrimaryEntity" />
</DisplayRule>
<DisplayRule Id="Mscrm.IsBackOfficeNotInstalled">
<OrganizationSettingRule Setting="IsSOPIntegrationEnabled" InvertResult="true" />
</DisplayRule>
<DisplayRule Id="Mscrm.ReadReport">
<EntityPrivilegeRule PrivilegeType="Read" PrivilegeDepth="Basic" EntityName="report" />
</DisplayRule>
</DisplayRules>
<EnableRules>
<EnableRule Id="Mscrm.FormStateExisting">
<FormStateRule State="Existing" />
</EnableRule>
<EnableRule Id="Mscrm.FormStateNotNew">
<FormStateRule State="Create" InvertResult="true" />
</EnableRule>
<EnableRule Id="Mscrm.salesorder.CanOrderBeCancelled">
<OrRule>
<Or>
<CustomRule FunctionName="isSalesorderFulfilled" Library="/_static/SFA/salesorder/salesorder.js" />
<CustomRule FunctionName="isBackOfficeInstalled" Library="/_static/SFA/salesorder/salesorder.js" InvertResult="true" />
</Or>
<Or>
<CustomRule FunctionName="isSalesorderSubmitted" Library="/_static/SFA/salesorder/salesorder.js" />
<CustomRule FunctionName="isBackOfficeInstalled" Library="/_static/SFA/salesorder/salesorder.js" />
</Or>
<Or>
<CustomRule FunctionName="isSalesorderActive" Library="/_static/SFA/salesorder/salesorder.js" />
</Or>
</OrRule>
</EnableRule>
<EnableRule Id="Mscrm.SalesorderIsActive">
<CustomRule FunctionName="isSalesorderActive" Library="/_static/SFA/salesorder/salesorder.js" />
</EnableRule>
<EnableRule Id="va.salesorder.EnableRule0.EnableRule">
<CustomRule FunctionName="enableSaveButton" Library="$webresource:va_I_and_A_js" Default="false" />
</EnableRule>
</EnableRules>
</RuleDefinitions>
<LocLabels />
</RibbonDiffXml>