Skip to content

Best Practices #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Best Practice for Creating HR Services
Original file line number Diff line number Diff line change
@@ -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.
14 changes: 14 additions & 0 deletions UI Policy Best Practice
Original file line number Diff line number Diff line change
@@ -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.');
}
}
Loading