Got it! Below are updated implementation requirements for each topic in ServiceNow that are more complex and involve additional logic and conditions. This will challenge the employees and enhance their understanding of each concept.
Implementation Requirements (Advanced)
1. Business Rule
Requirement:
Create a Business Rule that automatically escalates incidents to Priority 1 if the Category is "Critical" and if the Severity is greater than 2. Additionally, if an incident is assigned to a non-IT team, add a custom note to the incident to notify that it needs immediate attention.
-
Execution Steps:
- Navigate to System Definition > Business Rules.
- Create a new Business Rule named "Escalate Critical Incidents".
- Set the trigger to run Before insert/update on the Incident table.
- Create a condition to check if the Category is "Critical" and Severity > 2.
- Set the action to change the Priority field to "1".
- Add a script that checks if the Assigned to field is a non-IT team and appends a note to the Additional Comments field.
- Test this by creating or updating incidents that match and do not match these conditions.
-
Validation Steps:
- Verify that incidents with the specified conditions have their priority set to "1".
- Check if the note is appended for incidents assigned to a non-IT team.
- Ensure that incidents not meeting the criteria remain unchanged.
2. Client Script
Requirement:
Create a Client Script that validates the Short Description and Urgency fields before submitting the incident form. The Short Description must not be empty, and the Urgency must be set to either "1 - High" or "2 - Medium". If conditions are not met, display a custom error message and prevent submission.
-
Execution Steps:
- Navigate to System Definition > Client Scripts.
- Create a new Client Script named "Validate Incident Fields".
- Set the script type to onSubmit.
- Write code to validate both fields.
- Display a custom error message if validation fails and prevent form submission.
- Test by attempting to submit incidents with various combinations of filled/empty fields.
-
Validation Steps:
- Test various submissions, ensuring the error messages appear when conditions are not met.
- Confirm that the form submits successfully when all validations are passed.
3. Access Control List (ACL)
Requirement:
Create an Access Control Rule that grants the "approver" role to edit incidents but denies "read" access to the "Resolved" state for all users except the "admin" and "approver" roles. Additionally, add a condition to log an error message when an unauthorized access attempt occurs.
-
Execution Steps:
- Navigate to System Security > Access Control (ACL).
- Create a new record for the Incident Table with type update. Set the advanced condition to check roles.
- Duplicate the record to create a read rule, specifying that only "admin" and "approver" can read "Resolved" incidents.
- In each record, write a script to log an error when unauthorized access is attempted.
- Test by trying to access "Resolved" incidents with various user roles.
-
Validation Steps:
- Confirm that only users with the designated roles can read "Resolved" incidents.
- Verify that unauthorized attempts are logged correctly.
4. UI Policy
Requirement:
Create a UI Policy that makes the Resolution field mandatory when the State is set to "Resolved" AND if the Assignment Group is not "Support". Additionally, create a visible message that prompts the user to fill in the Resolution field when they try to submit the form.
-
Execution Steps:
- Navigate to System UI > UI Policies.
- Create a new UI Policy named "Mandatory Resolution for Non-Support Teams".
- Set the condition to check if State is "Resolved" AND Assignment Group is not "Support".
- In the UI Policy Actions, set the Resolution field to mandatory.
- Add a message that is displayed when the user tries to submit the form without filling in the Resolution.
- Test the Policy by changing various states and assignment groups.
-
Validation Steps:
- Ensure the Resolution field appears mandatory for the specified conditions.
- Verify that a proper user message displays when the form is submitted without filling in the Resolution.
5. Scheduled Job
Requirement:
Create a Scheduled Job that runs every night at midnight to automatically close incidents that have been in a "Resolved" state for more than 14 days, and send an email notification to the assigned user stating the incident has been closed due to inactivity.
-
Execution Steps:
- Navigate to System Definition > Scheduled Jobs.
- Create a new Scheduled Job named "Close Inactive Resolved Incidents".
- Set the job to execute daily at midnight.
- Write a script that queries incidents in the "Resolved" state for more than 14 days.
- Close those incidents in bulk and format a message to send to the assigned users informing them of closure.
- Schedule the job.
-
Validation Steps:
- Verify that incidents older than 14 days in the "Resolved" state are closed.
- Check that the assigned users receive email notifications about the closure.
Submission
- Capture the implementation details for each requirement, including screenshots or test results for reference.
- Prepare a summary report detailing the challenges faced during the implementations, solutions you found, and insights gained from the exercises.
- Ensure all changes are documented in the current update set you created at the beginning of the assignment.
This approach offers more complexity by requiring employees to think critically about conditions and logic, enhancing their skills in ServiceNow development.