I an using Dynamics 365 online, and have created an On demand workflow(Raise CR):
I am trying to trigger this workflow from Ribbon button(Raise CR) added by me on Main form using Ribbon Workbench.
When I manually run the workflow it works fine but when I click on the ribbon button nothing happens
below is the XML of ribbon:
<?xml version="1.0" encoding="utf-16"?>
<RibbonDiffXml xmlns:xsd="www.w3.org/.../XMLSchema" xmlns:xsi="www.w3.org/.../XMLSchema-instance">
<CustomActions>
<CustomAction Id="infinity.new_baprequest.Button2.RaiseCR.CustomAction" Location="Mscrm.Form.new_baprequest.MainTab.Save.Controls._children" Sequence="45">
<CommandUIDefinition>
<Button Command="infinity.new_baprequest.Command0.CRCommand" Id="infinity.new_baprequest.Button2.RaiseCR" Image32by32="$webresource:Marketing/_images/MA/CopyAsCampaign_16.png" Image16by16="$webresource:Marketing/_images/MA/CopyAsCampaign_16.png" LabelText="$LocLabels:infinity.new_baprequest.Button2.RaiseCR.LabelText" Sequence="45" TemplateAlias="o2" ToolTipTitle="$LocLabels:infinity.new_baprequest.Button2.RaiseCR.ToolTipTitle" ToolTipDescription="$LocLabels:infinity.new_baprequest.Button2.RaiseCR.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
<HideCustomAction HideActionId="infinity.Mscrm.HomepageGrid.new_baprequest.Activate.Hide" Location="Mscrm.HomepageGrid.new_baprequest.Activate" />
<HideCustomAction HideActionId="infinity.Mscrm.HomepageGrid.new_baprequest.Deactivate.Hide" Location="Mscrm.HomepageGrid.new_baprequest.Deactivate" />
<HideCustomAction HideActionId="infinity.Mscrm.HomepageGrid.new_baprequest.Edit.Hide" Location="Mscrm.HomepageGrid.new_baprequest.Edit" />
<HideCustomAction HideActionId="infinity.Mscrm.HomepageGrid.new_baprequest.NewRecord.Hide" Location="Mscrm.HomepageGrid.new_baprequest.NewRecord" />
<HideCustomAction HideActionId="infinity.Mscrm.HomepageGrid.new_baprequest.NewRecordForBPFEntity.Hide" Location="Mscrm.HomepageGrid.new_baprequest.NewRecordForBPFEntity" />
</CustomActions>
<Templates>
<RibbonTemplates Id="Mscrm.Templates" />
</Templates>
<CommandDefinitions>
<CommandDefinition Id="infinity.new_baprequest.Command0.CRCommand">
<EnableRules />
<DisplayRules />
<Actions>
<JavaScriptFunction FunctionName="Mscrm.CommandBarActions.launchOnDemandWorkflowForm" Library="/_static/_common/scripts/CommandBarActions.js">
<CrmParameter Value="PrimaryEntityTypeCode" />
<StringParameter Value="0D69A285-FD02-46A8-9699-1265931D2C89" />
</JavaScriptFunction>
</Actions>
</CommandDefinition>
</CommandDefinitions>
<RuleDefinitions>
<TabDisplayRules />
<DisplayRules />
<EnableRules />
</RuleDefinitions>
<LocLabels>
<LocLabel Id="infinity.new_baprequest.Button2.RaiseCR.LabelText">
<Titles>
<Title description="Raise CR" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="infinity.new_baprequest.Button2.RaiseCR.ToolTipTitle">
<Titles>
<Title description="CR" languagecode="1033" />
</Titles>
</LocLabel>
<LocLabel Id="infinity.new_baprequest.Button2.RaiseCR.ToolTipDescription">
<Titles>
<Title description="Raise CR" languagecode="1033" />
</Titles>
</LocLabel>
</LocLabels>
</RibbonDiffXml>
*This post is locked for comments