Question
LTIMindtree
IN
Last activity: 29 Apr 2019 6:00 EDT
save attachments to DB
how and where can i store attachments which i am uploaded in clipboard it is stored to .pyAttachments.refer below screenshot
***Edited by Moderator Marissa to update platform capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Data-WorkAttach-File class
PC_LINK_ATTACHMENT
PC_DATA_WORKATTACH
LTIMindtree
IN
can u suggest activity steps for this and pages and classes also
Pegasystems Inc.
US
Hi Vinod,
If you are talking about the File type attachment then you should explore the code from Data-WorkAttach-File.pySaveContent Declare trigger rule. If you are talking about Screenshot or ScanDocument type attachments then you should look into SaveAttachment activity of Data-WorkAttach-Screenshot or Data-WorkAttach-ScanDocument classes respectively. Hope this might be helpful to you.
Regards,
Mahesh M
Updated: 29 Apr 2019 4:55 EDT
Verizon Data Services
IN
You are seeing pyattachment page because the attachment is already stored in the data base . When you attach any attachment pega builds the dragDropFileUpload page list and stores the attachment in base64 .It saves the attachment in pc_data_workattach when you click on submit/attach ,provided you have not changed the class mapping.
LTIMindtree
IN
to store those pyattachments do we have to write an activty for that
Verizon Data Services
IN
If you are using the OOTB flow action pyAttachContent to attach an attachment then by default it invokes the post processing activity pzSaveAttachments , this activity will do the necessary saving , you don't have to do anything .
-
Lavanya M.S.
LTIMindtree
IN
thanks nikhil,
so where will these attachments store in PC_DATA_WORKATTACH in this class, ryt?