Leverage HR Service Case options for custom features to multiple HR Services
Often we see the same requirement/feature for multiple HR Services. Some examples I've seen are
- Do not trigger SLA for the internal administration of HR Services.
- Do not send Standard Notifications
- Do not send Customer Satisfaction Survey
- Cannot Transfer specific HR Service
Instead of hardcoding multiple HR Service id's in conditions or script logic. we can leverage HR Service case options to build a dynamic and scalable solution.
Let's consider an example where a customer doesn't want to send standard HR Case notifications for multiple HR Services. Instead of hard coding those HR Services in Notification condition, we can create a new case option
Step 1: Create a new case option "Skip Standard Notifications"
Navigate to HR Service Options(sn_hr_core_service_option) list of records and create new record
Step 2: Select the required HR Service and add the newly created option to the case options field.
Step 3: Modify Notification condition
Here for condition, instead of writing condition as "HR Service is not Disciplinary Issue", let's use the newly created option
HR Service.case options does not contain Skip Standard Notification
we can leverage these case options field in any script (Server/Client) logic and standard condition builders. when the customer requires the same feature for another HR Service all we need to do is add our case option to the new HR Service. HR Admins can also manage these options on any HR Services.
Thanks,
Sai Anna.
https://www.servicenow.com/community/hrsd-articles/leverage-hr-service-case-options-for-custom-features-to-multiple/ta-p/2313987