The Quick Button App from North52 is a ready-go-to solution for Microsoft Dynamics 2013/2015/2016/365 that allows you to place a HTML web-resource on a form which displays a button to the end user. This button can be configured to execute a North52 Formula which can then perform an action or return a message to be displayed to a user.
It consists of a HTML web resource which can be used as-is or can be fully customized to specific requirement. The following screenshot shows what a 'Update Related Contacts' button could look like when it is configured on the Account form.
Refer to this article for a real world scenario.
We will go through the setup of a basic button below using Decision Tables.
Note: you will need to have already set up the formula you want to trigger with the Quick Button. Please do this beforehand (you can use the real world scenario mentioned above) and keep note of the formula short code.
- Ensure North52 BPA is installed
- Download the solution file from the Quick Button app home page
- Logon to Dynamics and navigate to Settings > Solutions
- Click Import and choose the downloaded solution file to import
- Use all the default options during the install process
- After the import completes click 'Publish All'
Note: There are 4 web resources in North52 Quick Button:
- north52_quick_button_unified_interface requires North52 BPA v22.214.171.1246 or higher installed and is the recommended version to use.
- north52_quick_button_advanced requires North52 BPA v126.96.36.1996 or higher installed.
- north52_quick_button_subgrid requires North52 BPA v188.8.131.526 or higher installed. Use this when you need to execute a formula on subgrid records. See how to configure this Quick Button type here
- north52_quick_button requires North52 BPA v184.108.40.2061 or higher installed. This web resource should be considered deprecated.
The Unified Interface version offers significantly more functionality, backwards compatibility and works with the Unified Interface client - we would always recommend using this web-resource.
Creating the Quick Button Control Formula
- Create a new formula, setting the following values in the Formula Guide:
- Source Entity set to Account
- Set Formula Type to ClientSide - Calculation
- Note: This is the recommended Formula Type, although the Process Genie type is also supported
- Select the Decision Table editor
- Change the Name of the formula to Update Related Contacts - Quick Button
- Click Save
- Select Snippets > Quick Button from the options above the Decision Table editor
- Under Label-1, type 'Update Related Contacts - Quick Button'
- Under ClickShortCode-1, type in the Short Code of the formula you want to trigger
- Click Save
- Your Formula should like this:
- Make a note of the formula Short Code in the top right hand corner of the formula
- Open the form designer of the form where the button should be displayed
- Add the north52_quick_button_unified_interface web-resource to the form where you want the button to appear
- Type your formula Short Code into the Custom Parameter(data) field as shown below:
- Click on the Formatting tab
- Under row Layout, set the Number of Rows to 2
Steps to Enable Tablet Support
- Open the Quick Button Web Resource properties:
- Click on the lookup hyperlink north52_quick_button_unified_interface.htm to open up the Web Resource and ensure Enable for mobile is ticked:
- Click Save and close the Web Resource
- Refresh the Web Resource Properties page
- In the Visibility section, check Enable for Mobile
- Click OK
- Publish this change on your form
You can add a confirmation dialog to your Quick Button UCI by adding a column with the name "ConfirmationMsg".
To do this, just copy one of the other columns in you decision sheet, and change the column name to ConfirmationMsg.
The text that you enter in the sheet will then be displayed to your users when they click the button. They will have to click yes to confirm that they really want to do this action.
The 'ConfirmationMsg' parameter added to the decision sheet with the text to display.
The ConfimationMsg parameter must then be included in the Control.
In the above example I have added the following confirmation message: Are you sure you wish to do this?
This is what your user sees when they click on the button:
All parameters that can be included in Quick Button Decision Sheets
|( button/button-subgrid ) Specifies if the button is a regular button, or for a subgrid
|For Future Use
|Text that appears on the button
|Text that appears on button when it is clicked
|ShortCode of formula to execute when the button is clicked
|Additional text to display on button, e.g. if your button is will update a number of child records, you could show a count of the records that will be affected by the click
|Specific CSS styling to be applied to the button. Can be used to set width / height etc.
|Specific CSS classes that be applied to bootstrap buttons to set colour/size etc.
|( presave / presaveandrefresh ) On presave, the button will save the record to the database before executing the formula. On presaveandrefresh, after the save is completed and the formula is executed, the fields on the form with be refreshed to show any changed values.
|( yes / no ) determines if you want to reload the quick button after the formula triggered by the button click. Can be useful in scenarios where you don't want a user to see buttons if they are not relevant etc.
|( true / false ) marks the button as disabled if you want to show it, but not allow users to click it.
|Displays a confirmation message to the end user after they click a button to ensure they definitely want to complete that task.
|If you are using a button of type 'button-subgrid' then this is where you specify which subgrid you want the button to target.
The default values are there to guide you, they may or may not be applicable to your requirements for the buttons.
If you don't want to use a configuration parameter in the Decision Sheet, please set the value to " (two single quotes).