From 7c29317969ca00c9cb602392511ba51b6558aa25 Mon Sep 17 00:00:00 2001 From: shraddhakadam301298 <37328670+shraddhakadam301298@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:12:46 +0530 Subject: [PATCH 1/2] Create UI Policy Best Practice --- UI Policy Best Practice | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 UI Policy Best Practice diff --git a/UI Policy Best Practice b/UI Policy Best Practice new file mode 100644 index 0000000..bd16d97 --- /dev/null +++ b/UI Policy Best Practice @@ -0,0 +1,14 @@ +7. UI Policy Best Practices +Description: This check ensures that UI policies are used effectively, including hiding fields rather than disabling them when applicable. + +Example: Check if UI Policy uses disabled instead of hidden. +Best Practice: It's often better to hide fields instead of disabling them for better user experience. +Scan: Identify UI policies that disable fields instead of hiding them. +javascript +Copy code +function(uiPolicyCheck) { + var script = uiPolicyCheck.getFieldValue('script'); + if (script.indexOf('g_form.setDisabled') > -1 && script.indexOf('g_form.setVisible') === -1) { + uiPolicyCheck.addViolation('UI Policy uses "setDisabled" instead of "setVisible", which may lead to a poor user experience.'); + } +} From a5f5f10f03006553a9470aee4029f533cc1c1d18 Mon Sep 17 00:00:00 2001 From: shraddhakadam301298 <37328670+shraddhakadam301298@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:41:30 +0530 Subject: [PATCH 2/2] Create Best Practice for Creating HR Services --- Best Practice for Creating HR Services | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Best Practice for Creating HR Services diff --git a/Best Practice for Creating HR Services b/Best Practice for Creating HR Services new file mode 100644 index 0000000..04917a7 --- /dev/null +++ b/Best Practice for Creating HR Services @@ -0,0 +1,5 @@ +When creating an HR Service in ServiceNow, leveraging the platform’s capabilities to streamline HR operations is key to improving service delivery and employee experience. Here are some best practices for creating an HR service in ServiceNow: + +1. Understand the Needs and Define Services +Gather Requirements: Collaborate with HR stakeholders to understand the needs of the HR function. Define specific HR services (e.g., onboarding, payroll inquiries, leave management) that need automation. +Service Catalog: Develop a well-structured HR Service Catalog, categorizing services by type (e.g., benefits, compensation, employee relations). This helps employees easily navigate and request services.