Post Xanadu Unable to dot walk to Set Approval table field in approver level False Positive or Excep

Mike K
Tera Expert

 

After Xanadu upgrade we are unable setup approval rules for Exception or False Positive by doing a dot walk to set Approval table field on the Approver Level in the Exception or False Positive Approval Rules

Steps to Reproduce:
1. Open Approver Level:
2. Expand Approval table field and dot walk to: Change approval ==> Requested by ==> Click on Manager
3. The Approval table field is blanked out
According to ServiceNow support this issue was present in Washington. Until the problem ticket associated with this issue is resolved, I think a work around can be implemented using the script option:

 

The requirement is, instead of using the Approval table field to select the approver is to use the script option:

================================

var result = setUserAndGroup(recordGr);
users = result.users;
groups = result.groups;
/**
  * This function serves to return a list of approver users and groups.
  * The Vulnerable Item record provided in the change approval request is added as the input parameter to this script.
  * The function should return an object containing comma separated sys_ids for users and groups with role sn_vul.exception_approver.
  */
function setUserAndGroup(recordGr) {
    // Add any logic here to construct your script as necessary.
     return {
        users: "",
        groups: ""
    };
}
===================================
The first level approval the script should pick up the approver from the Change Approval (sn_vul_change_approval)  Requested_by Manager. 
 
The second level approval the script should pick up the approver from the Change Approval (sn_vul_change_approval)  Requested_by Manager Manager
 
The third level approval the script should pick up the approver from the Change Approval (sn_vul_change_approval)  Requested_by Manager Manager Manager
2 REPLIES 2

Martin Dewit
Kilo Sage

Hi Mike,

 

Have you tested your approval rule eventhough the field is blank?

It appears you can still dotwalk to your desired field and the filter does show as blank on the Approver Level form. However, from my testing the Approvals still function and if you look at the Approver Level XML, the filter is shown. This instance is on WDC.

 

MartinDewit_0-1737472504367.png

 

Mike K
Tera Expert

Hi Martin, 

I've tested this and it does work Thank you for the tip. As a workaround is OK, but I cannot submit this as an evidence configuration to the auditors. I hope ServiceNow product or development team come up with resolution soon.

 

Thank you for the information.

Regards,

Mike