To Setup Image Field From Creator In Writer Merge Document

How to Setup Image Field From Creator In Writer Merge Document?

To achieve this, the below pre-requisites are needed;
  1. Insert an image field in the Creator application.
  2. Insert an image field in Writer merge template.
  1. Zoho Writer supports only a public image url to perform Merge operations.
  2. Supported image formats are .jpg, .png, .gif, .bmp, .tiff, .ief, .g3, .ico and .rgb.
As the image field value in Creator is passed as file object, we have two possible ways to use it in Writer Merge;
  1. Either, convert the image file object as downloadable link in Creator.
  2. Or, upload the image to WorkDrive and create the external download link.
1. Publish the creator report by following this help link.
2. Once the creator report is published, you will receive a public link as shown below;

https://creatorapp.zohopublic.com/<AppOwnerName>/<AppName>/report-embed/<ReportLinkName>gXeQhTtZwaO3K7v******xGuW2qtbTPD8yyumNVyWWhkpYEkjTk95QTNEX6O58Z64NUfGu1hdhTZu8a0x7JzUkPORVdwjbQ0BNMV

3. The highlighted value in above public link will be used as a 'PublishedLinkKey' in the further steps.

Sample Snippet to create public link via deluge:
formrecord = University_sample[ID == input.ID];    // University_sample - FormName 


info formrecord.StudentPhoto;                //StudentPhoto - ImageFieldName 


imageLink = formrecord.StudentPhoto.getsuffix("image/"); 


imageLink = imageLink.getPrefix("\""); 


ImageURL = "https://creatorexport.zoho.com/file/<AppOwnerName>/<AppName>/<ReportLinkName>/" + input.ID + "/<ImageFIeldName>/image-download/<PublishedLinkKey>filepath=/" + imageLink;   


info ImageURL; 


Sample Creator ImageURL: 

4. You can use this 'ImageURL' to merge the creator image field with Writer.

- To achieve this, please follow the steps mentioned in this help link.

Sample WorkDrive ImageURL:

How to use the generated imageURL in Writer Merge APIs or Deluge Task?

Sample Snippet:

data= map();

data.put("field1","fieldvalue");

data.put (“imagefieldid”, imageURL);

data.put("field2","fieldvalue");


param = Map();

param.put("message", "Please find \n your invoice attached.");

param.put("subject", "Invoice Data");

param.put("merge_data", {"data":data});

param.put("output_format", "pdf");

param.put("recipient_email","xxx@zylker.com");

param.put("cc_email", "yyy@zylker.com");

param.put("bcc_email", "zzz@zylker.com");

param.put("from_email", "xyz@zylker.com"); 

param.put("password","test");


invokeurl

[

url: "https://zohoapis.com/writer/api/v1/documents/eb4kob4cf65bb6d074af7a7de21e561119eb9/merge/email"


type: post

parameters: param

connection: "writer_name"

];




    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: support@zohoforms.com


                            




                            

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

                                                                                      • How to merge Writer templates using Zoho Flow?

                                                                                        We're working on a Zoho Flow-Writer integration to help you pick template documents from Writer, place merge fields on them and merge it with data from Zoho Services. Find below steps to merge Writer Documents and with Zoho Creator Form fields. ...
                                                                                      • How to merge documents with Main & Subform data from a Creator App?

                                                                                        To create templates to be merged with Creator App containing a main form and sub forms, first capture form fields and Subform field relationships as a JSON object as shown below. Download the sample JSON data. Step 1 : Prepare Template  Log in to ...
                                                                                      • How to insert hyperlinks or image fields during merge?

                                                                                        To insert hyperlinks in the merged document as shown below, insert the respective link for each field in the data source and merge them.  To display images in the merged document, place the image link ending with png/jpeg/jpg pattern for the ...
                                                                                      • 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 ...
                                                                                      • Create Merge Templates

                                                                                        Overview ​An organization might require sending out many documents in bulk to clients, employees, and its customers, which would contain content common to all the recipients and personalized or unique information that varies from one recipient to ...
                                                                                      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