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 identify type of approval with table: "sysapproval_approver"

Rene Dugas
Tera Contributor

Hi,

 

I'm looking for a way to identify approvals I need to make form a list.

 

I use "sysapproval_approver" table but there is no column telling me if the approval is for retirement or for publishing.

 

I some rare cases I need to make mass approval for retirement on some KBs and doing it from that list (table) would help me.

 

But I can't identifiy the ones that are for retiring or publishing.

 

There is a column called "approval reason" but it's always empty.

 

Thanks


Rene

1 ACCEPTED SOLUTION

Hi @Rene Dugas OOTB, these are not getting populated, and I’d say it’s not that easy to get the purpose of approval — you’ll need a custom solution for this, mate. You need to get the details from the Flow and then map them to the appropriate field in the sys_approval table.

*************************************************************************************************************
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
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Rene Dugas 

There’s no field in the sys_approval table that can provide this, because it’s linked with the flow that determines why and for what purpose the approval is ending. You might need to create a custom field and then get it from the flow here.

*************************************************************************************************************
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
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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

In the table I see some columns that could help.

Approval for, reason, source, step...

But they are always with empty value. 

2025-10-17_09-18-27.png

 

Could something be done to the flow or table in order to fill these calues ?

Hi @Rene Dugas OOTB, these are not getting populated, and I’d say it’s not that easy to get the purpose of approval — you’ll need a custom solution for this, mate. You need to get the details from the Flow and then map them to the appropriate field in the sys_approval table.

*************************************************************************************************************
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
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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