I have created a workflow that I can successfully run on a record.
I simply want to put the workflow on a button.
I have downloaded Ribbon Workbench and using with Crm 2015 online.
I publish the change to the ribbon but when I click on the button
Sounds like such a simple task but I cannot get it to work.
Please Help :)
Thanks in advance
Here is my RibbonDiffXml
<RibbonDiffXml>
<CustomActions>
<CustomAction Id="dvt.salesorder.Button1.Button.CustomAction" Location="Mscrm.Form.salesorder.MainTab.Actions.Controls._children" Sequence="12">
<CommandUIDefinition>
<Button Alt="$LocLabels:dvt.salesorder.Button1.Button.Alt" Command="dvt.salesorderRunWorkflow1.Command" Description="Copy Sales Order" Id="dvt.salesorder.Button1.Button" LabelText="$LocLabels:dvt.salesorder.Button1.Button.LabelText" Sequence="12" TemplateAlias="o1" ToolTipTitle="$LocLabels:dvt.salesorder.Button1.Button.ToolTipTitle" ToolTipDescription="$LocLabels:dvt.salesorder.Button1.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
</CustomActions>
<Templates>
<RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
</Templates>
<CommandDefinitions>
<CommandDefinition Id="dvt.salesorderRunWorkflow1.Command">
<EnableRules />
<DisplayRules />
<Actions>
<JavaScriptFunction FunctionName="Mscrm.CommandBarActions.launchOnDemandWorkflowForm" Library="/_static/_common/scripts/CommandBarActions.js">
<CrmParameter Value="PrimaryEntityTypeCode" />
<StringParameter Value="7bAEC2E56B-32F0-48CD-B909-2A22CD88B716" />
</JavaScriptFunction>
</Actions>
</CommandDefinition>
</CommandDefinitions>
<RuleDefinitions>
<TabDisplayRules />
<DisplayRules />
<EnableRules />
</RuleDefinitions>
<LocLabels>
<LocLabel Id="dvt.salesorder.Button1.Button.Alt">
<Titles>
<Title description="Copy Sales Order" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="dvt.salesorder.Button1.Button.LabelText">
<Titles>
<Title description="Copy Sales Order" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="dvt.salesorder.Button1.Button.ToolTipDescription">
<Titles>
<Title description="Copy Sales Order" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="dvt.salesorder.Button1.Button.ToolTipTitle">
<Titles>
<Title description="Copy Sales Order" languagecode="1033" />
</Titles>
</LocLabel>
</LocLabels>
</RibbonDiffXml>
*This post is locked for comments