Question
LTIMindtree
IN
Last activity: 15 Nov 2023 7:31 EST
how to capture only file data from upload file function in pega
Hi All,
I have a requirement that I need to generate a report and need to attach generated excel report in the email, for that we are using pxGenerateExcelFile OOTB activity to generate a excel file, after that we need to attach the excel in the mail, so I am using @uploadFile() function to get the encoded string of excel file.
The function returning FilePath,FileName,FileExtension and FileData, but I need only FileData for sending email notification.
I have tried whatcomesafterlast to get the only Filedata and also tried replaceall function to replace other fields with null, but none is working with encoded string.
Is there a way to get only filedata from uploadfile function?