Update an existing list of items with new items.
Add a new list item, for example, InspectionList and persist it.
In Dev Studio, to add a new list item, create a data type Service in the PegaDATA database and have the following properties pyID (Primary key), EntityID, and EntityType.
Add other properties related to inspection like inspected by, inspected on, and so on.
In the Facility data type (PegaPS-Data-Entity-Facility), create a field.
In the Field name box, enter InspectionList.
In the Type list, select Embedded data.
In the Data object list, select Inspection.
Update the PersitEmbeddedPage (PegaPS-Data-Entity-Facility) activity with a new step looping the InspectionList property and invoke the activity SaveObject by passing the EntityID and EntityType parameters similar to CommList.
Create a UI to capture the facility details so that they persist after you enter the data.