ATF Group Approval

Tony Capone
Kilo Expert

I created a catalog item which has the following requirements:

  1. Approval needed from requestor's manager.
  2. Approval needed from any member of group XYZ.
  3. Perform a single task after both approvals. 

I successfully created an ATF to submit a portal request and get the approval from the requestor's manager. I am stuck at trying to create the necessary steps to get an approval from the group. 

 

1 ACCEPTED SOLUTION

Tony Capone
Kilo Expert

Thank you for the excellent suggestion. It worked. 

View solution in original post

2 REPLIES 2

Sam126
Tera Expert

I assume that the group XYZ is dynamic based on the requestor. There's no OOB ATF Test Step for this.

There's a few options you can use:

1. Use a 'Run Server Side Script' step to query the sysapproval_approver table where approval for is the REQ and state is requested and return one of the approval records (and therefore the approver) to impersonate. If this is something that will be useful for other ATFs you can create this as a Test Step. Refer to https://community.servicenow.com/community?id=community_question&sys_id=9526718c1b836450ed6c9979b04bcbdb

2. Use a 'Create User' step to create a user called "Group Approver" or similar, add the user to the XYZ group, then impersonate that user and approve similar to how you have done for the manager approval. Refer to https://community.servicenow.com/community?id=community_question&sys_id=f497585ddb7bc4185ed4a851ca961971

Tony Capone
Kilo Expert

Thank you for the excellent suggestion. It worked.