Monday, 23 July 2018

Adding Attachment in Pega

Adding Attachment in Pega

In Some cases we need to use attachment in application, if we are creating application for Employee Recruitment process then candidate have to upload the resume. In such scenarios Attachment is used.

Lets try this scenario.

First of all we have to create one Attachment Category rule, Attachment category is in Process->Attachment Category
In Attachment Category we have to give the access, whether the Application user can edit , Create, Delete, etc
Now in the above image I gave access to create and edit and I Not giving access to delete attachments.

Then we have to configure Section.

In Section I added a button to add attachment, On click we add an action "Local Action" there we have to give Local Action as AddAttachments and Target as Overlay and Overlay Format as Standard.

Now we will see how its works,

On Clicking the Add Attachment.
There we have to select the Category and File to upload
After Click Submit we can see the attached document with the case.


All the attached files will be saved in Work-Attachment  class

Thats all Adding attachment to case through flow.

7 comments:

  1. How to restrict with File format. Example: .Doc, .Pdf, .xml

    ReplyDelete
    Replies
    1. Hi,

      Work-.SaveAllAttachments used to save the attached document.We are calling this activity in AddAttachment flow action's Post Processing

      Param.hiddenFilePath Contains uploaded file(eg
      C:\fakepath\Background_Pattern.jpg ) With this parameter we can validate attached document.

      hope this will help u.

      Delete
  2. Excellent Mate

    ReplyDelete
  3. Excellent team. Can un pls explain about document versioning?

    ReplyDelete