Question
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
SINARMASMSIGLIFE
ID
Last activity: 27 Mar 2018 21:45 EDT
Resolve Multiple Case ID (Work Case ) With ACTIVITY
hi,
I have requirement about this topic, can pega OOTB resolve Case ID ( Work Case ) but not only 1 case, but multiple case ID ( selected by user) ??
I have searched for references on this and found the method "Updatestatus" on the activity,Can the method be used in this case? OR There is another solution ?
Thanks
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689964000/482fbd26-3e64-42a4-9953-bdd45e3ee634.jpg?itok=z5oSUnvD)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689964000/482fbd26-3e64-42a4-9953-bdd45e3ee634.jpg?itok=z5oSUnvD)
Pegasystems Inc.
IN
If you want select cases manually and resolve them, you could you Bulk Process present in the case manager portal. We have complete and withdraw localactions, which we can use.
If you want to do this programatically, pxForceCaseClose is the api to do that.
We have get the list of cases in a Paglist and call this api iteratively passing the WorkObjectID parameter.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689980000/6b73fef3-95fe-4476-92a0-e634d6a0fe28.jpg?itok=eO_uceTm)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689980000/6b73fef3-95fe-4476-92a0-e634d6a0fe28.jpg?itok=eO_uceTm)
BUPA
AU
Hi Ryan,
I think you have to call both UpdateStatus and RemoveFlows to delete any open assignment.
-
Shakeer Mohammed
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Aaseya IT Services Pvt Ltd
GB
Hi Ryan, you can call updateStatus activity to update the status of the activity and pxDeleteAssignmentsForWork activity to delete the assignment of that case. you can call this in a loop to do it for multiple cases.
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
SINARMASMSIGLIFE
ID
hi krishna
thanks For your advice ,
how to passing (param) for updateStatus & pxDeleteAssignmentsForWork ACTIVITY To specify which case id is selected .
thanks
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Coforge
AU
You Can also use pxForceClose API
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
IN
In our application we had similar requirement. the process we followed:
1. User will enter case is in comma separated format(CSV).
2.used Apply-Parse-Delimited method to split those case ids.
3. Called pxForceCaseClose pega API with each case id.
Thanks,
Saikat
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
SINARMASMSIGLIFE
ID
hi Saikatc8,
thanks For your advice ,
can you give An example of how this works with the pass param id case that we choose :)
thanks
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
SINARMASMSIGLIFE
ID
hi,
can anyone help me with this requirement ?
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
SINARMASMSIGLIFE
ID
hi,
can anyone help me with this requirement ?
![](https://accounts.pega.com/sites/default/files/pega-user-image/39/REG-38808.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/39/REG-38808.png?source=PUMINIT)
Pegasystems Inc.
IN
Hi
So basically you want to perform a bulk delete.
Here is my idea
1. Present the list of assignment as a grid and let user select the assignments they want to delete
2. Based on user selection create a separate pagelist
3. Have a button to call an activity
4. Configure that activity to call pxForceCaseClose in a loop
5. Use the pagelist ( which contains the list of assignments they want to delete ) for the looping logic
6. Pass the workobject id as parameter during each iteration.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Rabobank
NL
Use "pxForceCaseClose" if you want to resolve the sub cases along with the WO and even delete the open assignments.
If your regquirement is to just set the status of the WO as resolved, you can use "UpdateStatus" api.
Obviously, you need to call these in a loop to resolve multiple WOs.
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
SINARMASMSIGLIFE
ID
thanks kumaa21
can u give an example how pxForceCaseClose to be used ? for example, parse parameter case id.
thanks
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/473fdef3-3796-41fc-96be-4b47f01f1eaa.jpg?itok=Lk_mPyrm)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/473fdef3-3796-41fc-96be-4b47f01f1eaa.jpg?itok=Lk_mPyrm)
None
GB
Run the pxForceCaseClose activity in the loop of user selected results and pass the pyID as param.
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689964000/482fbd26-3e64-42a4-9953-bdd45e3ee634.jpg?itok=z5oSUnvD)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689964000/482fbd26-3e64-42a4-9953-bdd45e3ee634.jpg?itok=z5oSUnvD)
Pegasystems Inc.
IN
If you want select cases manually and resolve them, you could you Bulk Process present in the case manager portal. We have complete and withdraw localactions, which we can use.
If you want to do this programatically, pxForceCaseClose is the api to do that.
We have get the list of cases in a Paglist and call this api iteratively passing the WorkObjectID parameter.