Send mail merge documents through email using Workflow | Zoho CRM FAQ

How can I send mail merge documents through email using Workflow rules?

Yes, you can send documents created through mail merge via email using workflow rules with the help of functions. Read more about creating mail merge templates. 

To set workflow rule for sending mail merge documents
  1. Go to Setup > Automation > Workflow rule.

  2. Click +Create Rule.

  3. In Create New Rule, choose a module from the drop-down list.

  4. Enter Rule Name and Description.

  5. Click Next.

  6. In the Workflow configuration page, select When do you want to execute the rule?

  7. Choose a criteria, if you want the rule to execute for selected records.

  8. In Instant Action, choose Functions.

  9. In Configure Functions, select Write your own.

  10. Enter Function name and Display name.

  11. Click Edit Arguments.

  12. In the Edit Argument window, you can change the function name entered previously.

  13. In Argument Mapping, enter the record ID and email ID and map it with the right field.

    Use # to add a merge field.

  14. Click Save.

  15. Enter the below function.

resp = invokeurl 


               url :" + dealId 


type :GET 



 ]; //Create connection and pass the required mail merge id here 

 content = resp.get("email_template_preview").get("body"); 

fmp = Map(); 

fmp.put("email",zoho.loginuserid); //Set the from address as needed 

 emaillist = List(); 


emp = Map(); 



mp = Map(); 

mp.put("subject","Set as per your requirement"); 




mp.put("template_id","653844000009571011");//Pass the required template id here 


mp.put("attachment_name","Deal Won Template");//Set the attachment name as needed 

datalist = List(); 


paramp = Map(); 


resp1 = invokeurl 





type :POST 






 info resp1;

    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

            Get started with Zoho Sign

            in a few quick steps!

            Download Help Guide

                      Still can't find what you're looking for?

                      Write to us:



                        Zoho Marketing Automation

                          Zoho Sheet Reources


                              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 SalesIQ Resources

                                                  Zoho TeamInbox Resources

                                                          Zoho DataPrep 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

                                                                                    • Configuring Workflow Rules

                                                                                      Workflow Rules in Zoho CRM, are a set of actions (email notifications, tasks and field updates) that are executed when certain specified conditions are met. These rules automate the process of sending email notifications, assigning tasks and updating ...
                                                                                    • FAQs on Workflow Rules

                                                                                      1. What is a workflow rule? Workflow rules in Zoho CRM are designed to enhance productivity and reduce manual work by automating routine activities in a business process. They allow you to create rules that can trigger associated action types to give ...
                                                                                    • Managing Mail Merge Templates

                                                                                      Mail merge is a function that helps you to simplify repetitive tasks to create personalized documents (Forms, Letters, Address Labels, Envelopes, etc.). You can create a mail merge template that would contain the variables (merge fields) in it. Using ...
                                                                                    • Creating Workflow Tasks

                                                                                      Workflow Tasks are among the actions associated to a workflow rule. A task is an activity that is assigned to a user. When you associate a workflow task to a workflow rule, it is automatically assigned to the user when the rule is triggered for the ...
                                                                                    • Workflow for Emails

                                                                                      Configuring workflow rules makes it easier to manage daily activities as a lot of work gets automated. For example, every time a contact enters CRM a task is automatically assigned to the sales rep to call them and gather details, two days after the ...
                                                                                    Wherever you are is as good as
                                                                                    your workplace



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


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


                                                                                      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