Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

Adding a new list item

Updated on May 6, 2021

Update an existing list of items with new items.

Add a new list item, for example, ServiceHistoryList and persist it.

  1. In Dev Studio, to add a new list item, create a data type ServiceHistory in the PegaDATA database and have the following properties pyID (Primary key), EntityID, and EntityType.

  2. Add other properties related to subsidiary like service center name, service date, and so on.

  3. In the Vehicle data type (PegaPS-Data-Entity-Vehicle), create a field.

    1. In the Field name box, enter ServiceHistoryList.

    2. In the Type list, select Embedded data.

    3. In the Data object list, select ServiceHistory.

    4. Click Submit.

  4. Update the PersitEmbeddedPage (PegaPS-Data-Entity-Vehicle) activity with a new step looping the ServiceHistoryList property and invoke the activity SaveObject by passing the EntityID and EntityType parameters similar to CommList.

  5. Create a UI to capture the service history details so that they persist after you enter the data.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us