CRM2013/2015 - Do you use CRM Business Rules to automate forms?
Rules to Better CRM for Users|ea95a679-5979-4001-9039-7b878554c1ed;Rules to better CRM for Developers|8154ecb4-54db-4181-90d1-780712fe0a11
v5.0
Posted at
30/01/2017 11:12 AM by
Dennis Heer
Rule Intro
Prior to CRM 2013 if a CRM user wanted to:
- Show an error message
- Set a field value
- Set business required
- Set field visibility (show/hide fields)
- Lock or unlock a field
They would normally need to get a CRM developer involved to write JavaScript code to automate these actions.
Starting with CRM 2013 (and much improved in CRM 2015), users can now use Business Rules to automate these actions without getting a CRM developer involved.
Page Content
Take the following Example:
-
- Figure: ‘Customer Type Other’ should be hidden and only displayed when Other is selected
To make this work use the following Business Rules:
-
- Figure: Show the ‘Customer Type Other’ field when Customer Type equals Other
The flip side of the expression also needs to be set where Customer Type doesn’t equal Other to hide the ‘Customer Type Other’ field (you could also optionally clear this field too)
-
- Figure: Hide the ‘Customer Type Other’ field when Customer Type doesn’t equal Other
Finally the last step is to
Activate the Business Rules. To activate click the activate button on the top right of the tool bar.
Now the form will look like this:
-
- Figure: Great. Now ‘Customer Type Other’ is hidden
-
- Figure: And on the other side ‘Customer Type Other’ is visible
Note: CRM 2015 further improves on this by introducing the if… else… construct, so instead of creating two business rules (one for show and one for hide), this rule can be reduced to just one.
{19DA731C-2EAA-4319-85A1-06AA981A1306}
Do you feel this rule needs an update?