Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to approve group approvals using atf

GBS
Tera Contributor

How do you approve the group approvals using ATF? I have impersonated one of the group members and queried the record to open in the sysapproval_approver table. Still, the Approve UI action is not visible to approve the request. Is there any other way to achieve this?

2 REPLIES 2

Community Alums
Not applicable

Couple of things to check first,

1. Does the user/group have the approver_user role or equivalent?

2. Is the user/group active? 

 

I would then also validate that a sysapproval_approver record exists for debugging for that user using the validate step. 

 

Personally, I would create a user in that group as a step in the ATF, then impersonate the newly created user instead of impersonating an existing one, good practice as if that user leaves and a clone is done, the ATF will start failing later on. 

 

Could you also add some screenshots of what you are experiencing please? 

Shaqeel
Mega Sage
Mega Sage

Hi @GBS 

 

What I did is, 

After impersonation, I open the record e.g RITM

apply filter on list in Approval related list as approver is >>impersonator.

Open that record and approve.

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel