Login to the required environment and open classic UI of Dynamics CRM Environment and make sure that you have Ribbon Workbench was installed as shown in the figure.
After Step 1, in the same classic view under customizations -> Solutions. Create a new solution and add only contact entity without any components like forms, views etc., as shown in the below figure
After Step 2, Click on Ribbon WorkBench icon that was shown in the above figure and once a new Ribbon Workbench window gets opened click on Open Solution -> New Dialogue with list of Solutions -> Select required solution where contact entity was added in Step 2 as an example open contactribbon solution and place a new button on Form’s Main Tab and name it as Called From RBWBench as shown in the below figure.
After Step 3, click on Commands Section and Click on Add command and after that auto generated Id will be generated, to the right side Properties : Command under Actions Section there will be 2 fields that needs to be selected
- Function Name : Select the required method that was present in the Webresource . Ex : ContosoVaccination.Scripts.ContactForm.handleOnLoad
And then make sure that this command was attached to the button that was created in Step 3 as shown in the below figure.
After Step 4, open the Webresource and add the required code to respond to the button click on contact form with the following code
As shown in the below figure
- Make sure to select a command for a given button in Ribbon Work Bench else , solution which was opened with Ribbon Work Bench will not be published.
- Only add entities with out any metadata to the solutions that were used to create new buttons on classic crm forms.
Pingback: Back To Basics : Curated List of Articles in a Single Page – Common Man Tips for Power Platform, Dynamics CRM,Azure