Question

7
Replies
3340
Views
Vamsi.Thatavarthi Member since 2014 35 posts
Hcl Technologies
Posted: February 27, 2018
Last activity: October 16, 2018
Closed

Sending an Email with Attachment (PDF generated during run time

Hi Team, We have a grid which contains some Information and on top of the grid we have Export to PDF and Send Email Buttons. Upon clicking Send Email button, Email address of the recipient is collected and a PDF is generated with the contents of the Grid, attached to the EMAIL and sent to the users. I've used pxCreatePDF activity to generate PDF and attach it to my custom Attachment category and used SendEmail smart shape to send email to Recipient Email address including the attachments from the attachment category. I am facing the following issues with this approach: 1) PDF that gets generated via pxCreatePDF is empty (table header is coming). For Export To PDF button I have used the same activity (customized - Instead of attach, used View) and I was able to generate PDF with all information by providing the same section. Not Sure why Empty Table is getting generated. 2) In pxCreatePDF activity, I've created my custom attachment category and in SendEmail shape I've mentioned the same. When executed, for the first time no PDF is being sent, next time empty PDF is successfully received as an attachment by recipient. On the third time, 2 PDFs with same name are sent. Next time 3 PDFs with same name are sent. Is there a way to Overwrite the attachments in the category with same name? Thanks, Vamsi

Data Integration Java and Activities Case Management
Moderation Team has archived post
Share this page LinkedIn