Zoho writer connection to zoho people

Zoho writer connection to zoho people

I want to connect writer to zoho people enterprise. when writer mail merged template will be signed in zoho people I need these signed docs to be uploaded in zoho people personal records.  what is the error in this function code?  
Error Notification: 
Your function seems to have a syntax error. Please check the Debug information and clear the error to continue.


response = mergeEventObj.get("response");
mergedDocs = response.get("mergedDocInfo");
for each  mergeddoc in mergedDocs
{
merged_data = mergeddoc.get("data");
recordMap = Map();
recordMap.put("Name",merged_data.getJSON("Name"));
//Name - People form field label
recordMap.put("Phone_1",merged_data.getJSON("phone"));
//Phone_1- People form field label
recordMap.put("Email_ID_1",merged_data.getJSON("email"));
//Email_ID_1 - People form field label

// Downloading merged document -  scopes needed - ZohoWriter.documentEditor.ALL, ZohoWriter.merge.ALL
downloadurl = mergeddoc.get("merged_document_url");
downloaded_doc = invokeurl
[
url :downloadurl
type :GET
connection:""
];
//To upload the files to people fields, we have to upload files using file upload api. This will return encrypted file path. Then we have to update this filepath to fields with insert/update record api.
// Scopes needed - ZohoPeople.files, ZohoPeople.forms
paramList = list();
paramMap1 = {"paramName":"uploadFile","content":downloaded_doc};
paramMap2 = {"paramName":"fieldName","content":"Resume","stringPart":"true"};
// Resume - people form file field label
paramList.add(paramMap1);
paramList.add(paramMap2);
form_name = "";
//form name in people
uploadedResponse = invokeurl
[
url :"https://people.zoho.com/people/api/forms/" + form_name + "/uploadFile"
type :POST
files:paramList
connection:""
];
filepath = uploadedResponse.get("response").get("result").get("encryptedfilepath");
recordMap.put("Resume",filepath);
// Resume - people form file field label
paramMap = Map();
paramMap.put("inputData",recordMap);
res = invokeurl
[
url :"https://people.zoho.com/people/api/forms/json/" + form_name + "/insertRecord"
type :POST
parameters:paramMap
connection:""
];
}
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      • Sticky Posts

      • Deprecation of certain URL patterns for published Zoho Writer documents

        Hi Zoho Writer users! We'd like to let you know that we have deprecated certain URL patterns for published and embedded documents in Zoho Writer due to security reasons. If the published or embedded documents are in any of these URL patterns, then their
      • [Announcement] Insert image from URL changes in Zoho Writer

        Hi Zoho Writer users! We'd like to let you know that we've changed the behavior of the Insert image from URL option in Zoho Writer for security reasons. Earlier behavior Once you inserted an image URL in a Writer document, the image would be fetched from
      • Introducing plagiarism checker in Zoho Writer

        Zia, Zoho Writer's AI-driven writing assistant, now highlights plagiarized and duplicated content in addition to offering contextual grammar and writing suggestions to help you write clearly and concisely in English. Zoho Writer's plagiarism reports Here
      • [Important announcement] Impact of Google's new email guidelines for Zoho Writer automation users

        Hi users, Google has recently announced new guidelines for sending emails to Gmail and other Google-hosted domains. These guidelines will be effective starting Feb. 1, 2024, and can impact the delivery of emails sent from Zoho Writer. Your organization
      • Transitioning from MS Word to Writer: A complete walkthrough

        Hello everyone! We understand moving to a new word processing tool can be difficult, especially if it means switching from a legacy software like MS Word. That's why we've organized an exclusive webinar where we talk you through ways to make your switch from MS Word to Writer as easy as possible. In this webinar, you'll learn: - Why Writer is a simple yet powerful alternative to MS Word. - How to locate your favorite MS Word features and functions in Writer.  - How to migrate your Word documents

      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方