John Zhang1
Kilo Patron
Kilo Patron

ServiceNow has multiple applications within the scoped application after the global application.  In order to access the application cross scoped applications, you need to define cross-scope access to an application resource  in order to access other scoped applications, such as you want to access from global apps (Incident or Change) to HRSD applications.  

 

There is one easy way to access the cross scoped application without to pre-define cross-scope  record, which is using pre-fix of the scoped application: such as sn_hr_score for  Human Resources: Core and sn_hr_sp for Employee Center Core.    You directly use sn_hr_score to access all applications under Human Resources: Core.

 

                                                         The Cross Scoped Application Map

JohnZhang1_0-1686282197414.png

 

The following are the cross app use case samples related above diagram.

JohnZhang1_1-1686282518315.png

 

The following are more scoped applications and their use cases for your reference.  

JohnZhang1_2-1686282737364.png

 

You can use scope pre-fix to access other scope as indicated above.   

 

Use Cases:  sn_hr_core is the scoped pre-fix for  Human Resources: Core

  1.    var table_extensions = sn_hr_core.hr.TABLE_CASE_EXTENSIONS;
  2. var caseCreation = new sn_hr_core.hr_CaseCreation();
  3. new sn_hr_core.hr_Delegation().isAssignedOrDelegated(gr)
  4. newUserCriteria.script = 'new sn_hr_core.hr_Criteria().evaluateById("' + sys_id + '", user_id);';
  5. new sn_hr_core.hr_SysUser().generateUserName(source.getValue('pref_first_name').trim(), source.getValue('pref_last_name').trim());
  6.  var taskUtil = new sn_hr_core.hr_Task();
  7. var hrform = new sn_hr_core.GeneralHRForm(table, document, table, document);
  8. new sn_hr_core.hr_Utils().sanitize(String(caseConfiguration.custom_title));
  9.   this._isAuthorizedSubjectPerson = _gr ? sn_hr_core.hr_Case.userHasSubjectPersonAccess(_gr) : false;
 If you like my post, please mark this post useful.