Send Record Template as an Attachment in Mail

Send Record Template as an Attachment in Mail

Requirement

Send a record summary as a PDF attachment via mail using the Deluge's send mail task.

Use Case

Consider an organization using Zoho Creator to manage POS operations. Whenever an invoice is generated, the invoice record template is promptly emailed to the customer as a PDF attachment.

See how it works

Steps to Follow

  1. Create a form according to your preferences to collect invoice details. In this tutorial, for demonstration purposes, we have used the 'Pay an Invoice' form from the form template.

  2. Navigate to Record Templates in the application settings and Create a record template by selecting the Pay an Invoice form. Name the template 'Invoice'.

  3. Design your record template by dragging and dropping the required elements and fields for your template from the designer, as shown below.

  4. Create a workflow to execute on the successful submission of the Pay an Invoice form, then select the Record Event as 'Created'. Name the workflow 'Send Mail' and click Create Workflow. This workflow will send the invoice to the customer's email and store it in the Email field.

  5. Click Add New Action > Deluge Script and add the following code to the Deluge editor.
  1. //Mail the invoice record template as a PDF attachment to the customer using the Deluge send mail task.
  2. sendmail
  3. [
  4.  from :zoho.adminuserid
  5.  to :input.Email
  6.  subject :"Zylker - Your invoice as on" + input.Date_field
  7.  message :"Dear " + input.Name + ", <br />Thank you for your recent purchase with Zylker. Attached, you will find the invoice for your transaction.<br /> <br />Best Regards <br />Zylker Corp"
  8.  Attachments :template:Invoice as PDF
  9. ]
Where,

Invoice

Represents the link name of the record template can be found in the record template properties.

See How it Works


  1. Send Mail Task
  2. Understand record templates

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              TypeformWCAG


                                          Create. Review. Publish.

                                          Write, edit, collaborate on, and publish documents to different content management platforms.

                                          Get Started Now




                                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                Manage your brands on social media


                                                                  • Desk Community Learning Series


                                                                  • Digest


                                                                  • Functions


                                                                  • Meetups


                                                                  • Kbase


                                                                  • Resources


                                                                  • Glossary


                                                                  • Desk Marketplace


                                                                  • MVP Corner


                                                                  • Word of the Day


                                                                  • Ask the Experts


                                                                    Zoho Sheet Resources

                                                                     

                                                                        Zoho Forms Resources


                                                                          Secure your business
                                                                          communication with Zoho Mail


                                                                          Mail on the move with
                                                                          Zoho Mail mobile application

                                                                            Stay on top of your schedule
                                                                            at all times


                                                                            Carry your calendar with you
                                                                            Anytime, anywhere




                                                                                  Zoho Sign Resources

                                                                                    Sign, Paperless!

                                                                                    Sign and send business documents on the go!

                                                                                    Get Started Now




                                                                                            Zoho TeamInbox Resources





                                                                                                      Zoho DataPrep Demo

                                                                                                      Get a personalized demo or POC

                                                                                                      REGISTER NOW


                                                                                                        Design. Discuss. Deliver.

                                                                                                        Create visually engaging stories with Zoho Show.

                                                                                                        Get Started Now








                                                                                                                            • Related Articles

                                                                                                                            • Understanding sending an email notification

                                                                                                                              Understanding sending an email notification on form submission You can enable your users to automatically receive an email notification when they submit an entry through your form. Most importantly you can send this email from a different From ...
                                                                                                                            • Automatically create daily reports and send current day's reports as email attachment

                                                                                                                              Requirement Schedule custom actions to automatically create labour reports everyday at the specified time and send a filtered report of all the reports corresponding to the current day as an email attachment. Use case Let's assume your company has ...
                                                                                                                            • Send Page as PDF Attachment via Email

                                                                                                                              Requirements Schedule an email to send a Zoho Creator page as a PDF attachment at defined time intervals using Deluge's sendMail task. Use Case To support customer engagement and business promotion, an organization uses the Pages feature in Zoho ...
                                                                                                                            • Communicate stakeholders about an out-of-stock situation without manual intervention

                                                                                                                              Requirement   When an item runs out of stock, send an automated email to the vendor, and alert the customer that the item is not available. Send an alert to the customer when the item gets restocked. Use Case   In an order or inventory management ...
                                                                                                                            • Configure send email action

                                                                                                                              To improve email deliverability, we will be following an updated email handling policy, effective from September 19, 2024. This means that any public and unauthenticated custom domain email addresses cannot be used as sender addresses in send mail ...
                                                                                                                              Wherever you are is as good as
                                                                                                                              your workplace

                                                                                                                                Resources

                                                                                                                                Videos

                                                                                                                                Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                eBooks

                                                                                                                                Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                Webinars

                                                                                                                                Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                CRM Tips

                                                                                                                                Make the most of Zoho CRM with these useful tips.



                                                                                                                                  Zoho Show Resources