I am working on a parent case that contains an embedded list. Users can modify records in the list and submit the screen. Based on the updated records, I need to create one or more child cases associated with the current parent case. Could you please help me with the steps i need to follow? I have seen similar question in form but was not clear where they have mentioned below steps
Create a work page for the child case by calling the “createWorkPage” activity within your activity and passing the required parameters.
2.Next, call the “addWork” activity and pass the cover handle, which will create the child case.
Instead of writing a custom activity, you can leverage the Create Case automation shape in your case life cycle and select the option “Create multiple cases using a list”. In the post-processing of your current step, you can simply format a page list containing the data for the new child cases and reference that list in the automation shape. This allows system to handle the case creation, locking, and relationship mapping automatically.
creating case using automation shape doesn’t work in my scenario. cases should be created even before i submit screen, to be precise cases should be created when i click save for later which will trigger a declare trigger rule, i need to wrte custom activity in declare tirgger which creates child cases.
I tested this approach, but my requirement is to create child cases that are associated with the currently open parent case. there is no option to pass coverinskey.
recommended approach is using the automation shape. if you have to use an activity to create child case, try using pxAddChildWork activity instead of addWork.
If you’re using the Automation Case Creation, then you can specify the pagelist to create the child cases, use data propogration to propogate the data to your child cases, easier maintainence, etc..