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

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?

Hi @ShreyaG3 ,

What is the actual ID ID should be generated,

Could you please go through below article and very nice article

@KenshoTsuchihashi

I hope this will help you

Thanks,

Ashok

Hi Bhumireddy,

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

Hi @ShreyaG3 ,

Can we connect offline, please call me 9493929141

Thanks,
Ashok

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 .

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.