Minimum Character check for a resolution

Minimum Character check for a resolution

Requirement:
Resolution content is mandatory when a request is being resolved. But frequently, when closing a request, technicians write incorrect or meaningless text in the resolution content.  So, we will need to evaluate resolution content's minimum character count.

Steps to follow:
1.Extract the attached content and copy it into Admin >> Developers Space >> Request custom function >> New.  
2.Save the function with a proper name.
3.Configure this script as a Business Rule to get executed every time a request is edited and resolution content is not empty.




Error when the resolution does not contain proper value:


if("null".equalsIgnoreCase(resolution) || resolution.length() < 20) -->You could customize the resolution length as per your requirement.

                  New to ADSelfService Plus?

                    • Related Articles

                    • Business Rule is not working

                      There are a few configurations that need to be checked for business rules.  1. Account/Site Check the request Account & Site, Now, go to Admin>Business Rules>Filter the Account & Site and make sure the Business Rules is created for the same  2. Rule ...
                    • Notification script using Custom function in custom trigger

                      This is applicable from 10600 builds. From 10600 , Business rules dont have Email notification feature. The same use case be achieved through Custom triggers feature as mentioned below. Script to enable notification of request creation using custom ...
                    • Create service requests through email using Business Rule - Deluge

                      This post describes the use of custom function scripts to create a service request through email based on keywords in the subject.  When a request is created with specific keywords in the subject of a incoming mail , the Business Rule will be ...
                    • Update Request Additional fields during request create/update using Custom Trigger - Deluge

                      This is a sample custom function script to update the Request Additional Field Values during request create/update based on certain criteria using Custom Triggers. Refer to this link for Python ...
                    • Discovery Rule - Customisation

                      What’s Changed? Previously, the logic to determine the product type of an asset was static and hard-coded. With this new enhancement, we can now configure flexible rules to determine the product type of assets based on conditions like operating ...