# Unique ID Generation logic

**URL:** <https://forums.pega.com/t/unique-id-generation-logic/712>\
**Category:** General\
**Tags:** pega-platform, case-management\
**Created:** [October 15, 2020, 12:28pm UTC](https://forums.pega.com/t/unique-id-generation-logic/712 "2020-10-15T12:28:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinoth\_kumar](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/vinoth_kumar/32/23200_2.png) [@vinoth\_kumar](https://forums.pega.com/u/vinoth_kumar)\
**Post date:** [October 15, 2020, 12:28pm UTC](https://forums.pega.com/t/unique-id-generation-logic/712/1 "2020-10-15T12:28:34Z")

</div>

Could someone share how Pega generating the Unique Identifier for each Work Type. I want to know the logic behind it. Any pointer to an article would also be helpful.

---

<div class="post-metadata">

**Author:** ![Gunasekaran\_Baskaran](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/gunasekaran_baskaran/32/2203_2.png) [@Gunasekaran\_Baskaran](https://forums.pega.com/u/Gunasekaran_Baskaran)\
**Post date:** [October 17, 2020, 1:34pm UTC](https://forums.pega.com/t/unique-id-generation-logic/712/2 "2020-10-17T13:34:01Z")

</div>

HI Vinoth,

**GenerateID** - This is the activity which is responsible for generating unique case id. Pega will be maintaining the case id instance details in Data-UniqueID table.

Case ID prefix will be playing major role while generating Case ID number. In Data-UniqueID table pyLastReservedID column pega will be maintaining the last case id (maximum number) which got generated inside system. While new case is getting created system will add +1 to the number which is currently available in pyLastReservedID column and it will assigned as a case id to the case.

---

<div class="post-metadata">

**Author:** ![duraisankar](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/duraisankar/32/23517_2.png) [@duraisankar](https://forums.pega.com/u/duraisankar)\
**Post date:** [October 18, 2020, 8:44am UTC](https://forums.pega.com/t/unique-id-generation-logic/712/3 "2020-10-18T08:44:52Z")

</div>

From Pega V8.3, a new logic is implemented for Case ID creation to overcome the performance issues.

Here is the detailed post about it - [Case ID generation mechanism | Support Center](https://collaborate.pega.com/discussion/case-id-generation-mechanism)

---

<div class="post-metadata">

**Author:** ![vinoth\_kumar](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/vinoth_kumar/32/23200_2.png) [@vinoth\_kumar](https://forums.pega.com/u/vinoth_kumar)\
**Post date:** [October 19, 2020, 4:09am UTC](https://forums.pega.com/t/unique-id-generation-logic/712/4 "2020-10-19T04:09:07Z")

</div>

Thanks for the response Gunasekaran.

---

<div class="post-metadata">

**Author:** ![vinoth\_kumar](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/vinoth_kumar/32/23200_2.png) [@vinoth\_kumar](https://forums.pega.com/u/vinoth_kumar)\
**Post date:** [October 19, 2020, 4:10am UTC](https://forums.pega.com/t/unique-id-generation-logic/712/5 "2020-10-19T04:10:11Z")

</div>

Thanks for the response duraisankar
