Send email with attachment of filled in form of requested item

AnthonyMull
Tera Contributor

Hi Community,

 

I have a use case where I have a form set up as a catalog item.

 

I would like to send an email of an attachment containing a pdf or other Rich Text document, where this document is a copy of the filled in form (Catalog item)

 

Is this possible?

 

Kind regards

1 REPLY 1

Akash4
Kilo Sage
Kilo Sage

Hi Anthony, 

This is achievable but with extra efforts. We do have APIs for Generating PDF via sn_pdfgeneratorutils.PDFDocument() which can saved in system as an attachment and later sending Email via GlideEmailOutbound() using Business Rule. Try out the idea, and not forgetting the catalog variables list, add the in PDFDocument API using pdfdoc.addParagraph('Request Number: ' + current.number); etc. for each variable.

Happy learning!

 

Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.