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();
//Name - People form field label
//Phone_1- People form field label
//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
//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
form_name = "";
//form name in people
uploadedResponse = invokeurl
url :"https://people.zoho.com/people/api/forms/" + form_name + "/uploadFile"
type :POST
filepath = uploadedResponse.get("response").get("result").get("encryptedfilepath");
// Resume - people form file field label
paramMap = Map();
res = invokeurl
url :"https://people.zoho.com/people/api/forms/json/" + form_name + "/insertRecord"
type :POST

                        Zoho Marketing Automation

                                • Sticky Posts

                                • Merge and Store v1 API depreciation

                                  Hi Zoho Writer users, The Merge and Store v1 API allows you to store the merged document in Zoho WorkDrive. The response of this API will be returned with the document's ID only after the merge is complete. In Deluge, the maximum timeout for operation
                                • 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
                                • Writer Designer's Update 2018: What's Changed with Page Settings

                                  Hey there, Writers! =] As a part of the Writer Designer's Update 2018, here's everything new and improved with Tables in Writer: 1. Customizable horizontal lines  While horizontal lines act as separators for different sections in a document, they also make your document more visually appealing and easier to read. Keeping that in mind, we've now added some handy customization options for horizontal lines in the form of line weight, color, pattern, and alignment. 2. Beautiful page borders Give your
                                • Zoho Clipboard App has been discontinued

                                  Hello there! Thanks to everyone who wrote to us. We could see you had trouble installing, and using both Zoho Writer and Zoho Clipboard Apps at the same time via Chrome Web Store. To avoid this conflict, we have decided to, as you've already guessed, discontinue the App, and bundle it with the Zoho Writer App itself. Chrome users will only need the Zoho Writer App now to enable Copy and Paste on right click. Here's the how to remove the Clipboard App: 1. Go to your Chrome Apps page by clicking on
                                • First Look: The New and Improved Zoho Writer

                                  Preview the all-new Zoho Writer to see our cleaner, more stylish, and more intuitive interface. Click the Try New Version link on top of your Writer window and switch to a better experience.  Here's all that's new: Revamped UI With a brand new look, comes a whole new approach – introducing modes, a simpler way to write. The Compose mode gives you a space to write without distractions. Switch to the Review mode when it's time to add other people to the equation, and get feedback from your peers. When

                                Manage your brands on social media

                                        Zoho TeamInbox Resources

                                          Zoho DataPrep Resources

                                            Zoho CRM Plus Resources

                                              Zoho Books Resources

                                                Zoho Subscriptions Resources

                                                  Zoho Desk Resources

                                                    Zoho Projects Resources

                                                      Zoho Sprints Resources

                                                        Qntrl Resources

                                                          Zoho Creator Resources

                                                            Zoho WorkDrive Resources

                                                              Zoho Campaigns Resources

                                                                Zoho CRM Resources

                                                                • CRM Community Learning Series

                                                                  CRM Community Learning Series

                                                                • Tips


                                                                • Functions


                                                                • Meetups


                                                                • Kbase


                                                                • Resources


                                                                • Digest


                                                                • CRM Marketplace

                                                                  CRM Marketplace

                                                                • MVP Corner

                                                                  MVP Corner

                                                                • Word of the Day

                                                                  Word of the Day

                                                                        Design. Discuss. Deliver.

                                                                        Create visually engaging stories with Zoho Show.

                                                                        Get Started Now