How to pass the data for the Merge field types via API/DRE?

How to pass the data for the Merge field types via API/DRE?

To know about the list of merge field types available, please refer this help link.

How to pass the value for each merge field types via API?

The value will be passed in a JSON format inside the 'merge_data' parameter. 

Sample JSON:


{
"data":[
       {
       "Name":"OhHaNi",  
       "Email":"xyz@abc.com",  
       "Phone":9876543210,  
       "embed_widget":"http://mysite.com/profile/",  
       "link_field":"https://www.zoho.com/writer",  
       "hobby”:[“Swimming","CycleRide"],  
       "Date":"12/12/2021",  
       "marital_status":"No",  
       "ContactInfo_BAR":"SecretKey", 
       "ContactInfo_QR":"SecretQR",  
       "richtext_field":"<h1>html content goes here</h1>", 
       "Address":"ABS multiline content goes here"  
       }
   ]
}

How to pass the value for each merge field types via DRE?

Sample snippet:

customerDetail = Map();
customerDetail.put("Name","OhHaNi");  //plain text
customerDetail.put("Email","xyz@abc.com");  //email
customerDetail.put("Phone","9876543210");  //phone
customerDetail.put("embed_widget","http://mysite.com/profile/");  //embed
customerDetail.put("link_field","https://www.zoho.com/writer");  //link
customerDetail.put("hobby",{"Swimming","CycleRide"});  //list
customerDetail.put("Date","12/12/2021");  //date
customerDetail.put("marital_status","No");  //checkbox
customerDetail.put("ContactInfo_BAR","SecretKey");  //barcode
customerDetail.put("ContactInfo_QR","SecretQR");  //qr code
customerDetail.put("richtext_field","<h1>html content goes here</h1>");  //rich text
customerDetail.put("Address","ABS  multiline content goes here");  //multi line
mergedata = Map();
mergedata.put("merge_data",{"data":customerDetail});
mergedata.put("subject","I am testing it from DRE");  //optional 
mergedata.put("message","Look!! its done");  //optional 
zoho.writer.mergeAndSend("fbsa6360a78f53f564dfa9b4a1e79febed569","pdf","x@zoho.com",mergedata,"writer”);


    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








                                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

                                      Zoho Desk Resources

                                      • Desk Community Learning Series


                                      • Digest


                                      • Functions


                                      • Meetups


                                      • Kbase


                                      • Resources


                                      • Glossary


                                      • Desk Marketplace


                                      • MVP Corner


                                      • Word of the Day


                                        Zoho Marketing Automation

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







                                                                                            You are currently viewing the help articles of Sprints 1.0. If you are a user of 2.0, please refer here.

                                                                                            You are currently viewing the help articles of Sprints 2.0. If you are a user of 1.0, please refer here.



                                                                                                  • Related Articles

                                                                                                  • How to merge Subform Fields via Merge API's in Writer?

                                                                                                    1. Create a Merge template in Writer with related (RL) fields Sample Merge Template consisting of both Normal and RL fields: Hello <<Contacts.First Name>> Send a mail to <<Contacts.Email>> Invoice Owner Invoice Number Created By Due Date ...
                                                                                                  • How to Pass Image Fields Values in Zoho CRM's Mail Merge via API?

                                                                                                    When conducting a mail merge from Zoho CRM using our Merge APIs, if the merge template includes image fields, you'll need to construct the value for those image fields on your end. Zoho CRM will solely provide the Preview Image ID value for the image ...
                                                                                                  • Repeat Blocks in merge

                                                                                                    Repeat Field is one of the advance merge fields that lets you repeat blocks of information for each record in your data source automatically. The following image shows how a template document as well as the output document will look after using the ...
                                                                                                  • Merge and Store V2 API

                                                                                                    Purpose: In Merge and Store V1 API, the response will be returned along with the RID only after the merge is completed. In Deluge Script, the maximum timeout will be 40 secs. In some cases, the merge operation will exceed 40 secs which fails the DRE ...
                                                                                                  • Finish Merge

                                                                                                    Finish Actions Email Notifications You can enable email notifications to get notified when the merge is initiated and completed. You will receive an email as shown below, once the merge is initiated with a link to track the status of the merge ...
                                                                                                    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