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

                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 ...
                                                        • 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 ...
                                                        • Converting Records Using Workflow Rules

                                                          Converting leads, quotes or sales orders can be automated using workflow rules. When a record meets the criteria defined in the workflow rule, all the associated actions are triggered for the record. Workflow rules created for leads, quotes and sales ...
                                                        • 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 ...
                                                        • FAQs on Workflow

                                                          1. How can I disable workflow rules for Standard users? Workflow rules can be defined by any user with the 'Manage Workflow' permission. By default, the Standard profile user also has this permission and you cannot change it. However, you can create ...



                                                        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