# How to update Timer or Wait due to wait shape on a case.

**URL:** <https://forums.pega.com/t/how-to-update-timer-or-wait-due-to-wait-shape-on-a-case/4197>\
**Category:** General\
**Tags:** pega-customer-service-for-financial-services, system-administration, system-architect, case-management, pega-platform\
**Created:** [March 22, 2023, 6:19am UTC](https://forums.pega.com/t/how-to-update-timer-or-wait-due-to-wait-shape-on-a-case/4197 "2023-03-22T06:19:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VarshaR27](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@VarshaR27](https://forums.pega.com/u/VarshaR27)\
**Post date:** [March 22, 2023, 6:19am UTC](https://forums.pega.com/t/how-to-update-timer-or-wait-due-to-wait-shape-on-a-case/4197/1 "2023-03-22T06:19:37Z")

</div>

We have requirement to update the existing hold on the case due to wait shape with the new datetime. How to do it?

---

<div class="post-metadata">

**Author:** ![abhiraj](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/abhiraj/32/10434_2.png) [@abhiraj](https://forums.pega.com/u/abhiraj)\
**Post date:** [March 22, 2023, 6:57am UTC](https://forums.pega.com/t/how-to-update-timer-or-wait-due-to-wait-shape-on-a-case/4197/2 "2023-03-22T06:57:41Z")

</div>

@VarshaR27

When we use wait shape, a instance get created in SYSTEM-QUEUE-SERVICELEVEL class.

You can create an activity in which go with mentioned step:

1. Open your case using open-by-handle & update .pxFlow(RoutingToWorkBasket\_Flow).pxAssignDeadTime with the new time.

2. Open your case related Assign-WorkBasket instance (w.r.t WB mentioned in wait shape) and update .pxDeadlineTime with the new time

3. Get AssignWB.pxRefQueueKey (same assign-Wb instance from step 2) and set a param

Param.SystemSLAQueueKey ="SYSTEM-QUEUE-SERVICELEVEL "+AssignWB.pxRefQueueKey

1. Open instance of System-Queue-ServiceLevel using Param.SystemSLAQueueKey as pzInsKey and update .pyMinimumDateTimeForProcessing with the new time.

Let me know if it helps.
