How to attach an excel file present in the service export directory to a work object?
HI Preethi,
set the location of file to pxProcess.pyFileUpload property.we can use Uploadfile() function to get stream of excel file.then we will set this stream to pyAttachStream. Link Attachment instance to attach this file with WO.
@SaiPreethiB
We are not having any pega OOTB activity to attach document directly inside case by passing the file stream content.
Please follow the same approach which pega had in their activity and create your own activity.
Activity name = AddAttachmentFromMail
Get the file stream content from directory and just send the needed parameter to the activity, that should help you in attaching the document inside work-object.
OR
You can make use of pega api to attach document to a case.
