Skip to main content


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

Entity attachments

Updated on November 22, 2021

Attach documents to the entity profile. You can view, download, update, or delete these documents at anytime.

Pega Government Platform Implementation Guide Pega Government Platform Implementation Guide

In government applications, various entities hold different documents which you can view or refer in other cases. For example, a Person entity can have a passport, a birth certificate, and so on, attached to their profile. If required, you can refer these attachments in the license case.

The following are some of the features of entity attachments:

  • Entity attachments offers support for entities like person, business, facility, vehicle, and household.
  • When you add a new attachment, PGP creates a new document case (CL: PegaSocial-Document) .
  • The AttachmentRefID property of the entity is set as the parent instance handle key of the document case. Using AttachmentRefID, the entity view screen displays the attachments of an entity.

Extending attachments for a new entity type

Hold documents for the entities of a new entity type in the implementation layer.

  1. In pyCaseMainInner section of entity view class, in the Utils area, add a Documents section with the Page context as Use clipboard page and context value as Entity Page.

    For example: For Person entity, in the pyCaseMainInner section (CL:PegaPS-Work-Entity-Person-View), in the Utils region, add a Documents section with Page context as Use clipboard page and context value as .Person.

  2. Before persisting the entity, set the AttachmentRefID property. Set this property in step 3 of the PrepareObject (CL:PegaPS-Data-Entity) data transform.
    Note: If this setting is not getting called for your new entity, then before persisting, set the AttachmentRefID property to ‘ @toUpperCase(.pxObjClass)+" "+.EntityID ‘
  3. Similarly, during the fetching of entity details, set the AttachmentRefID. In the data transform of the new entity's lookup datapage, set AttachmentRefID to ‘ @toUpperCase(.pxObjClass)+" "+.EntityID ‘. Refer FetchPersonDetails (CL:PegaPS-Data-Entity-Person) step 2.

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.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us