How can we create cases for 100 records in pega

Is it possible to create cases for so many records in pega?This was asked in an interview.

@TanyaS58

You can create any number of cases you want, there’s no restriction. Few ways are like creating cases using pagelist where the length of the pagelist is 100, using a job scheduler to run at specific times to create cases etc. The implementation will depend on what your scenario requirement is.

@TanyaS58

Yes you can create as many top level cases as required, there is no restriction.

@TanyaS58

We can create the cases using the following methods based on your requirements.

  1. DX API

  2. Service REST

  3. Activity (within the same app)

  4. Create a Case Smart shape (within the same app)

While there are no restrictions on creating cases, it’s important to keep in mind that having too many cases in the work table could negatively impact performance. Therefore, it’s recommended to implement a retention policy sooner rather than later.

@RameshSangili how can a service REST be used to create cases?

@TanyaS58

Service REST takes an activity as input. Based on your requirements, you can create a case or any other business rules in the activity rule.

I hope this helps!

Thanks,