This is a follow on article from Execute Formula - Button on Form.
In this article we will attach a ribbon button to a list view on Dynamics 365.
Note: After version 188.8.131.520 North52 supports calling other formula types like this, but only ClientSide - Calculation will allow you to return a response to the calling screen.
Step 1: Configure the N52 Formula
Step 2: Add the Quick Ribbon to the entity using Ribbon Workbench.
Configure a Command by clicking on the + icon. We change the name to new.quote.N52.ListViewCloneCommand.
The first three will be used to load N52 support files on the button and the fourth will be used to execute the formula.
The function name should be set to isNaN
Unlike the form, we will be passing in 4 parameters instead of just one.
- Crm Parameter: SelectedControlSelectedItemsIds
- Crm Parameter: SelectedEntityTypeName
- Crm Parameter: UserLcid
- String Parameter: shortcode of the formula
Drag a button onto the form. We set the ID to be new.quote.N52.ListViewCloneButton and name it Clone Quotes.
Set the Command to be the newly created command. For this example, we will use the create new order icon.
Publish the Solution to Dynamics 365.