Add Button to Entity RibbonExport the entity in question and open up customizations.xml. Add the following within the CustomActions tag…
Location sets which area of the ribbon the button will appear on.
Sequence sets where within that ribbon it will appear.
LabelText sets the text which appears under the icon on the ribbon.
TemplateAlias (who knows!)
Create the click actionNow we need to add the command Mscrm.RunSomeJS within the CommandDefinitions section.
EnableRules sets if the button is greyed out on the toolbar (always enabled in this example)
DisplayRules sets if the button appears on the toolbar (if the user can write to the account entity in this example)
FunctionName sets the name of the function to run within the web resource
StringParameters in this case are the guid of the account entity (not used currently) and the guid of the workflow to trigger