Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Discontinue requests pending for manager approval

Suresh1
Regular Contributor
Regular Contributor

Hello Team,

How can i discontinue the requests which are waiting for manager approval ? I can do it from UI but the count is quite a lot. Is there a way to discontinue them from a query ? 

 

7 REPLIES 7

Raghu
All-Star
All-Star

@Suresh1  below script will help you

 

select requestkey as ars_Requests__primarykey ,4 as ars_Requests__status
from ars_requests where SUBSTR(JBPMPROCESSINSTANCEID, INSTR(JBPMPROCESSINSTANCEID, '.') + 1, LENGTH(JBPMPROCESSINSTANCEID)) in ('XXX',XXX)

Refrence below articles:

https://forums.saviynt.com/t5/privileged-access-management/removing-void-requests-from-approval-page...

https://forums.saviynt.com/t5/identity-governance/approval-request-not-clearing-after-approval/m-p/8...

 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

rushikeshvartak
All-Star
All-Star

It’s advisable to perform from UI. As there will be always entries in dependent tables 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

dgandhi
All-Star
All-Star

Execute below as custom query job in 5.5 instance:

dgandhi_0-1721748937620.png

 

 

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

Suresh1
Regular Contributor
Regular Contributor

I have the request numbers but not the request keys. Is there any table i can join to get the request keys of the requests ?

If you have request id then you can use below:

dgandhi_0-1721757520186.png

 

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

select requestkey as ars_Requests__primarykey ,4 as ars_Requests__status
from ars_requests where SUBSTR(JBPMPROCESSINSTANCEID, INSTR(JBPMPROCESSINSTANCEID, '.') + 1, LENGTH(JBPMPROCESSINSTANCEID)) in ('XXX',XXX)

 

Custom query

 

update ars_requests set status=4 where SUBSTR(JBPMPROCESSINSTANCEID, INSTR(JBPMPROCESSINSTANCEID, '.') + 1, LENGTH(JBPMPROCESSINSTANCEID)) in ('REQ1',REQ2)

Update request id in above query


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Honored Contributor II
Honored Contributor II

Hi @Suresh1 , ars_requets table will provide you with requestkey