# Wrong case id prefix is generated using pega create case API in constellation

**URL:** <https://forums.pega.com/t/wrong-case-id-prefix-is-generated-using-pega-create-case-api-in-constellation/12496>\
**Category:** General\
**Created:** [June 25, 2026, 6:04am UTC](https://forums.pega.com/t/wrong-case-id-prefix-is-generated-using-pega-create-case-api-in-constellation/12496 "2026-06-25T06:04:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShreyaG3](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@ShreyaG3](https://forums.pega.com/u/ShreyaG3)\
**Post date:** [June 25, 2026, 6:04am UTC](https://forums.pega.com/t/wrong-case-id-prefix-is-generated-using-pega-create-case-api-in-constellation/12496/1 "2026-06-25T06:04:46Z")

</div>

I have 2 applications(App A and App B) where case types are defined in App A and I have created the connect rest in App B to consume Pega DX API create case to create a case in App A. But the case is generated with wrong prefix(C-). I have tried setting pyWorkIDPrefix in pyDefault and in Cases Data tab in App A setting but still the case id prefix is wrongly generated.

Can anyone help on this?

---

<div class="post-metadata">

**Author:** ![Bhumireddy](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bhumireddy/32/23248_2.png) [@Bhumireddy](https://forums.pega.com/u/Bhumireddy)\
**Post date:** [June 25, 2026, 7:56am UTC](https://forums.pega.com/t/wrong-case-id-prefix-is-generated-using-pega-create-case-api-in-constellation/12496/2 "2026-06-25T07:56:46Z")

</div>

Hi @ShreyaG3 ,

What is the actual ID ID should be generated,

Could you please go through below article and very nice article

> [@Case ID generation mechanism](https://forums.pega.com/t/case-id-generation-mechanism/575):
>
> Hi, In this post, I am sharing case ID generation mechanism and how it can be customized. First of all, case ID consists of three parts - [prefix]-[integer]-[suffix] as shown below. No Example Prefix Sequence # Suffix 1 C-100 C- 100 2 15378-DR 15378 -DR 3 MORT-763-K4 MORT- 763 -K4 You can use either prefix, or suffix, or both along with sequence #. “Suffix” is blank by default and most of customers don’t use it in my experience but you can use it if it’s preferred. “Prefix” i…

@KenshoTsuchihashi

I hope this will help you

Thanks,

Ashok

---

<div class="post-metadata">

**Author:** ![ShreyaG3](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@ShreyaG3](https://forums.pega.com/u/ShreyaG3)\
**Post date:** [June 25, 2026, 9:02am UTC](https://forums.pega.com/t/wrong-case-id-prefix-is-generated-using-pega-create-case-api-in-constellation/12496/3 "2026-06-25T09:02:57Z")

</div>

Hi Bhumireddy,

By default it is taking C- as a workID prefix but in our case type it is mentioned as B-

---

<div class="post-metadata">

**Author:** ![Bhumireddy](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bhumireddy/32/23248_2.png) [@Bhumireddy](https://forums.pega.com/u/Bhumireddy)\
**Post date:** [June 25, 2026, 9:19am UTC](https://forums.pega.com/t/wrong-case-id-prefix-is-generated-using-pega-create-case-api-in-constellation/12496/4 "2026-06-25T09:19:21Z")

</div>

Hi @ShreyaG3 ,

Can we connect offline, please call me 9493929141

Thanks,  
Ashok

---

<div class="post-metadata">

**Author:** ![HarikaU9](https://avatars.discourse-cdn.com/v4/letter/h/9e8a1a/32.png) [@HarikaU9](https://forums.pega.com/u/HarikaU9)\
**Post date:** [June 25, 2026, 10:04am UTC](https://forums.pega.com/t/wrong-case-id-prefix-is-generated-using-pega-create-case-api-in-constellation/12496/5 "2026-06-25T10:04:02Z")

</div>

Hi ,

I hope you are using “Cases” DXAPI , Please send the the work class of the case that you are trying to create in request Json in the following field “caseTypeID” .Makesure to add AllowedstaringFields data transform in Application B corresponding casetype class and this DT should include all the fields that you are sending in the request Payload .

---

<div class="post-metadata">

**Author:** ![RameshSangili](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/rameshsangili/32/23377_2.png) [@RameshSangili](https://forums.pega.com/u/RameshSangili)\
**Post date:** [June 25, 2026, 5:12pm UTC](https://forums.pega.com/t/wrong-case-id-prefix-is-generated-using-pega-create-case-api-in-constellation/12496/6 "2026-06-25T17:12:49Z")

</div>

Here are the troublsehooting tips,

1. Ensure the caseTypeID (Class name) passed in DX API is correct
2. Ensure the Case and Data in your application rule has the correct prefix defined.
3. Ensure the pyDefault Data transform in your case type is not overriding the prefix for your case type.
