Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/23/2024 06:32 AM
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 ?
Solved! Go to Solution.
07/23/2024 07:35 AM
@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:
07/23/2024 08:19 AM
It’s advisable to perform from UI. As there will be always entries in dependent tables
07/23/2024 08:35 AM
Execute below as custom query job in 5.5 instance:
07/23/2024 10:48 AM
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 ?
07/23/2024 10:58 AM
If you have request id then you can use below:
07/23/2024 11:35 AM
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
07/23/2024 10:54 AM
Hi @Suresh1 , ars_requets table will provide you with requestkey