Hi all i have created a PDF by using Reports(Type::HTML),now my requirement is i want to attache the PDF generated from the report in the email template,i know that we can use the link to download the PDF by using report link,But we need to send the PDF file as attachment in the email.
Can anyone help me on this pls.
It does not look like we have such capabilities at this time. I'll create enhancement request for one of next releases.
ty for ur reply.
Hi Sudhakar,
You can do other methods for example:
1. Create a document template field and a document template in the specified object.
2. The document template will contain your html report code.
2. In the email template, you can use the document template field token e.g {!test_document_template#html}
When the email is sent via trigger the token will now render as an attachment.
Or
Just add a link in the email template containing the report url. This will not render as an attachment but the pdf is still accessible in the email.
I don't know if this applicable to you but I hope it helps a bit.
Thanks,
Gian
Hi Sudhakar,
This enhancement has been addressed and it will be available as part of the Rollbase version 3.0.1.0. release.
To achieve, We should use the #body token of pdf report.
Thanks,
Rajkumar
thanks for you info [mention:7a3777c14de749d7b0cd7c5edeadbadb:e9ed411860ed4f2ba0265705b8793d05] ,i saw you enhancement it is very help full for the users. If i use the body token it is displaying the html report output in the body part of email,Can we send as attachment (In PDF format,it will contain the same data what we are seeing body part of mail).
Hi,
Solution for having pdf files in your email as attachment:
Create document template field (example integration name: pdfdocument) and store pdf file in this field by using a document template trigger. Then use the following token in your email and put it somewhere in your email content: {!pdfdocument#link}. Parsing this token will result in the document name and the file will be attached to the email.
Hope this helps
You can also include report template token like {!#REPORT.220679#body} into body of email template. Reports based on binary templates (DOC, XLS etc) will be attached to email.