Comment
Kilo Patron
Kilo Patron

I have completed #ServiceNowHacktoberfest with 4 PRs accepted.

 

Following are the details of my pull requests:

 

  1. Utility to Fix Update Set Scoping Issues - PR: ServiceNowDevProgram/code-snippets#1071

 

ServiceNow Developers work with update set batching and many times it happens that customer updates gets captured in a wrong scope. As of Xanadu release, there is no way to fix these scoping issues in child updates. This code snippet utility will perform following and implement a way of taking in a parent/batch update set:

  • Navigate all children, all updates in children.

  • Determine scope issues with updates.

  • Create new update set in correct scopes.

  • Move updates to those new update sets.

  • Associate them with parent/batch.

  • Stop action on completion of update sets if there are any scope issues found and direct the user to click on the Fix Scope button.

This functionality has following:

  • Business rule to abort transaction if scoping issues are found in batched update sets.
  • Script include which does job of scoping issues conflict as well as logic for fixing batch scope issues.
  • UI action which can be used by developers to fix scoping issues conflict.

 

2.   GreenHouse ServiceNow Integration Utility - PR: ServiceNowDevProgram/code-snippets#1164

 

This code snippet utility contains sample code to integrate ServiceNow with GreenHouse and pull employee files from GreenHouse in ServiceNow Employee Document Management OOB Table records.

Sample code queries HR profile which a filtered query of active users which has a valid greenhouse ID present in ServiceNow HR profile records.

REST message which calls Greenhouse REST API is using below REST endpoint. https://developers.greenhouse.io/harvest.html#get-retrieve-candidate

Document Types sys_id can be mapped to relevant document types on your instance.

 

3.Syntax Editor Macro to populate macrosObj with records from the Syntax Editor Macro table - PR: ServiceNowDevProgram/syntax_macros#147

 

This syntax macro Get data from the background and make it accessible after it is retrieved.

e.g This macro can be used from client script during service portal widget development.

 

4. Created a new instance scan check for client scripts - ServiceNowDevProgram/example-instancescan-checks#147

 

Created a new instance scan check for client scripts to make that the isLoading flag is used in onchange client script.