pdf generate and send it in an email
Application Type
Traditional Web
Service Studio Version
11.9.1 (Build 33435)

Hi Team,

I have  a traditional web screen with some content and I need to export the content as PDF document and then email the PDF document as an attachment.

step1. Generate PDF document, (once the pdf file is generated where we have to save this file so that it will picked by the email notification service).

step2. Once the PDF file is generated, we have to pick up the PDF file and attach it with the email and send to the mail recipients.

Please help me with an example implementation or any documentation. Thanks in advance.

Regards,

Madhu

9686664841

1. Have you choose the component to create the PDF? 

From the Forge you have more than one, I found this :

https://www.outsystems.com/forge/component-overview/209/html2pdfconverter

https://www.outsystems.com/forge/component-overview/7918/open-html-to-pdf

2. In the preparation of the email page you can use the "attach" tool 

Hope this help 

Graça

mvp_badge
MVP

Hi Madhu ,

First you add the email screen and in preparation you can use the Attach File widget and add the contents of the pdf and filename in it.

Now as a first step you generate the pdf and store it in a temp table and get the id of it which you will use in the email template preparation to fetch the file data in assign it to the Attach File wizard.

Please see the below screenshot...


Regards,

-PJ-



Hi Pramod,

Could you please share the OML file for reference.

I am using html2 pdf convertor for pdf generation and it is downloading the file to my local file system. I don't know how to insert the pdf file to a table to entity. Please help, thanks.

Regards,

Madhu

can u share the related oml. I also have the same issue

Just use the Output parameter from "generatePDF" "PDFBinary" to save in the entity 

the field you use to save it must have data type  "Binary Data" 

Hope this helps

Graça

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.