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. 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.'); + } +}