Send for Signature via CRM

Send for Signature via CRM

Hi All,

I am trying to trigger a Zoho Sign Signature request custom function when a specific tag is added to a deal. I am having trouble with the Zoho Sign Request on line 57 - undefined variable

  1. recordmap.put("zohosign__Account",accountid);
I tried looking through the API literature but I feel like I am missing something. I have installed the Zoho CRM to Zoho Sign module + added Zoho Sign in Developer Space --> connections
  1. //Get the name, email, client # & booking # necessary fields to merge in the Zoho Sign Document
  2. record = zoho.crm.getRecordById("Deals",id);
  3. firstname = record.get("First_Name");
  4. lastname = record.get("Last_Name");
  5. name = firstname + "\n" + lastname;
  6. booking = record.get("Booking_Number");
  7. client = record.get("Client_Number");
  8. nameaddress = firstname + "\n" + lastname;
  9. email = record.get("Email");

  10. //Parameter map: to create a Zoho Sign document with prefilled fields using a Zoho Sign Template - Note:
  11. actionMap = Map();
  12. fieldTextData = Map();
  13. fieldTextData.put("Name and Address",nameaddress);
  14. actionMap.put("field_data",{"field_text_data":fieldTextData});
  15. eachActionMap1 = Map();
  16. eachActionMap1.put("recipient_name",name);
  17. eachActionMap1.put("recipient_email",email);
  18. eachActionMap1.put("Full_name",name);
  19. eachActionMap1.put("booking",booking);
  20. eachActionMap1.put("client",client);
  21. eachActionMap1.put("action_type","SIGN");
  22. eachActionMap1.put("action_id","111430000000143036");
  23. eachActionMap1.put("role","Client");
  24. eachActionMap1.put("verify_recipient","false");
  25. fieldList = List();
  26. fieldList.add(eachActionMap1);
  27. actionMap.put("actions",fieldList);
  28. submitMap = Map();
  29. submitMap.put("templates",actionMap);
  30. parameters = Map();
  31. parameters.put("is_quicksend","true");
  32. parameters.put("data",submitMap);

  33. //Send the Zoho Sign Template with the pre-filled fields to the desired recipient/ recipients
  34. response = zoho.sign.createUsingTemplate("273382000000083026",parameters);

  35. //Get the Template Name - used as the name for the record in the "ZohoSign Documents" module in Zoho CRM later
  36. template = zoho.sign.getTemplateById("273382000000083026");
  37. templatename = template.get("templates").get("template_name");

  38. //Get the Zoho Sign Document ID
  39. requests = response.get("requests");
  40. docs = requests.get("document_ids");
  41. docinfo = docs.get(0);
  42. docid = docinfo.get("document_id");

  43. //Get the Zoho Sign Request ID
  44. reqid = requests.get("request_id");
  45. docinfo = docs.get(0);
  46. docid = docinfo.get("document_id");

  47. //Create Map for CRM Record - ZohoSign Documents
  48. recordmap = Map();
  49. recordmap.put("Name",templatename);
  50. recordmap.put("zohosign__Account",accountid);
  51. recordmap.put("zohosign__Deal",dealid);
  52. recordmap.put("zohosign__Owner",deal.get("Owner").get("id"));
  53. recordmap.put("zohosign__Date_Sent",today);
  54. recordmap.put("zohosign__ZohoSign_Document_ID",docid);
  55. recordmap.put("zohosign__Module_Record_ID",dealid.toString());
  56. recordmap.put("zohosign__Document_Deadline",today.addDay(3)); //--> This is arbitrary
  57. recordmap.put("zohosign__Document_Status","Out for Signature");

  58. //Check Date and Frequency are additional fields created in the "ZohoSign Documents" CRM Module to control the email notification triggering and field update via workflow rule
  59. recordmap.put("Check_Date",today.addDay(1));
  60. recordmap.put("Frequency",0);
  61. recordmap.put("Request_ID",reqid);

  62. //Create a Record in the "ZohoSign Documents" module in Zoho CRM
  63. create = zoho.crm.createRecord("zohosign__ZohoSign_Documents",recordmap);

    Access your files securely from anywhere

          Zoho Developer Community




                                    Zoho Desk Resources

                                    • Desk Community Learning Series


                                    • Digest


                                    • Functions


                                    • Meetups


                                    • Kbase


                                    • Resources


                                    • Glossary


                                    • Desk Marketplace


                                    • MVP Corner


                                    • Word of the Day



                                        Zoho Marketing Automation
                                                • Sticky Posts

                                                • Zoho CRM Functions 53: Automatically name your Deals during lead conversion.

                                                  Welcome back everyone! Last week's function was about automatically updating the recent Event date in the Accounts module. This week, it's going to be about automatically giving a custom Deal name whenever a lead is converted. Business scenario Deals are the most important records in CRM. After successful prospecting, the sales cycle is followed by deal creation, follow-up, and its subsequent closure. Being a critical function of your sales cycle, it's good to follow certain best practices. One such
                                                • Custom Function : Automatically send the Quote to the related contact

                                                  Scenario: Automatically send the Quote to the related contact.  We create Quotes for customers regularly and when we want to send the quote to the customer, we have to send it manually. We can automate this, using Custom Functions. Based on a criteria, you can trigger a workflow rule and the custom function associated to the rule and automatically send the quote to customer through an email. Please note that the quote will be sent as an inline email content and not as a PDF attachment. Please follow
                                                • Function #50: Schedule Calls to records

                                                  Welcome back everyone! Last week's function was about changing ownership of multiple records concurrently. This week, it's going to be about scheduling calls for records in various modules. Business scenario Calls are an integral part of most sales routines.. Sales, Management, Support, all the branches of the business structure would work in cohesion only through calls. You could say they are akin to engine oil, which is required by the engine to make all of it's components function perfectly. CRM
                                                • Function #37: Create a Purchase Order from a Quote

                                                  Welcome back everyone! Last week, we learnt how to calculate the total number of activities for a lead and further take note of the activity count for particular dates. For instance, from the period of Demo to Negotiation. This week, let's look at a function that lets you create a Purchase Order instantly from a Quote. Business scenario: In any form of business, one of the most important things to do is to document the transactions. Naturally, negotiation, signing an agreement, placing an order,
                                                • Function-2: Round-Robin assignment of records

                                                  Welcome back folks! Last week, we saw how to update sales commission in quotes using a custom function. This week, let's see an interesting use case asked by many of you - auto-assignment records by round-robin method. Business scenario: Right now, the solution allows you to auto-assign leads from web form and imported lists. Let us look at a need where you want to auto-assign leads from in-bound calls in a round-robin method, across modules. Prerequisite: You must create a permanent record in the


                                                Manage your brands on social media



                                                      Zoho TeamInbox Resources

                                                        Zoho DataPrep Resources



                                                          Zoho CRM Plus Resources

                                                            Zoho Books Resources


                                                              Zoho Subscriptions Resources

                                                                Zoho Projects Resources


                                                                  Zoho Sprints Resources


                                                                    Qntrl Resources


                                                                      Zoho Creator Resources



                                                                          Zoho Campaigns Resources


                                                                            Zoho CRM Resources

                                                                            • CRM Community Learning Series

                                                                              CRM Community Learning Series


                                                                            • Kaizen

                                                                              Kaizen

                                                                            • Functions

                                                                              Functions

                                                                            • Meetups

                                                                              Meetups

                                                                            • Kbase

                                                                              Kbase

                                                                            • Resources

                                                                              Resources

                                                                            • Digest

                                                                              Digest

                                                                            • CRM Marketplace

                                                                              CRM Marketplace

                                                                            • MVP Corner

                                                                              MVP Corner





                                                                                Design. Discuss. Deliver.

                                                                                Create visually engaging stories with Zoho Show.

                                                                                Get Started Now


                                                                                  Zoho Show Resources


                                                                                    Zoho Writer Writer

                                                                                    Get Started. Write Away!

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

                                                                                      Zoho CRM コンテンツ






                                                                                        Nederlandse Hulpbronnen


                                                                                            ご検討中の方





                                                                                                  • Recent Topics

                                                                                                  • Language Field on Contact Person-level

                                                                                                    Dear at Zoho Books, would it be possible for you to have a Field for 'Language' for the Contact Persons under a Company. In CRM and Bigin we could create a Custom Field (Dropdown) for this effect but without any present in Zoho Books we could never sync
                                                                                                  • This domain is not allowed to add. Please contact support-as@zohocorp.com for further details

                                                                                                    I am trying to setup the free version of Zoho Mail. When I tried to add my domain, theselfreunion.com I got the error message that is the subject of this Topic. I've read your other community forum topics, and this is NOT a free domain. So what is the
                                                                                                  • Zoho Books email notifications

                                                                                                    Hi, We are currently implementing Zoho books for our organisation. I have 2 questions. 1. Are we able to embed HTML into our emails to make them look as part of our business ? Branding is very big issue for us and i would like to make sure that all branding efforts are carried across into the notification emails.. 2. Is there a way to preview the notifications that are sent out to our customers so we can make sure the look and feel is as we require ? thanks
                                                                                                  • Multiple templates (Settings > Email templates)

                                                                                                    Hi Zoho, We would like to have more options to select a template when sending an email in Zohosign. Currently we can only add 1 template per option: Is this possible? Kind regards, Tristan
                                                                                                  • Add an action to set agent as a member of a team in zoho desk

                                                                                                    Hi, Please add an action to zoho flow to set agent as a member of a team in zoho desk (add to a team or remove from a team). Regards, Ram
                                                                                                  • Zoho email setup in office365

                                                                                                    When i am trying to setup zoho mail setup using my domain in office365 and it is not working and it says that we couldn't log on to the incoming (IMAP) server and please check your email address and password and try again. I was able to login using my
                                                                                                  • Plug Samples #12: Verify Customer Mobile Numbers with OTP to Avoid Spam Entries

                                                                                                    Hi Everyone! Verifying customer information is critical in business to filter out junk data and spammers. Whether it’s lead generation, appointment booking, or any other operation, ensuring quality data is essential for driving meaningful outcomes. A
                                                                                                  • All notes disappeared

                                                                                                    I've been using the notebook app for over five years on my phone without being logged into an account. A few days ago I opened the app and all my notes had disappeared. Since then I tried restarting my phone, updating the app and logging into my account,
                                                                                                  • I need help in setting up a script that works for my calling service

                                                                                                    Please i need your guidance and expertise in how to go about a particular scripting. You see, we are a call service that assists companies to receive calls for them, i need to create a system in my Zoho CRM whereby i will receive call from my already
                                                                                                  • Cost Center accounting

                                                                                                    Hello all. We are looking at switching from MYOB to Zoho books. Love all the features in books - esp. CRM integration, but the big gap for us is the lack of cost-center accounting feature. Are there firm plans to develop this feature in Zoho Books? If
                                                                                                  • Impuesto automatico en cotizaciones

                                                                                                    Buen dia Mi pregunta es como se puede poner alguna operacion para que las cotizaciones me salgan automaticamente con impuestos ya que uno al cargarla al final tienen que añadir el porcentaje de impuesto Saludos
                                                                                                  • Formatting of Gantt Chart for PDF export

                                                                                                    Hi all, There really needs to be some improvements to the presentation of exported PDF Gantt Charts. An exported format is the way that most people on a project (other than the PM directly) will consume this data. The current PDF export options are lacking a lot of control. - I'd like to firstly have control over the export size of the PDFs (A4, A3 etc), Currently it seems arbitrary - very large aspect ratio print sizes. - Next i'd like to be able to specify the print date range, and scale (show
                                                                                                  • How to Iterate a Function in Zoho Desk Workflow with Delay Between Calls?

                                                                                                    Hi everyone, I’m working on a function in Zoho Desk that searches for a specific ticket record. If the ticket is not found, I need to retry the search multiple times with a delay between each attempt until the ticket is located or a maximum number of
                                                                                                  • タスクを問い合わせテンプレートに追加

                                                                                                    タスクを問い合わせテンプレートに自動で追加されるようにしたいです。どうしたらいいですか
                                                                                                  • Placeholder for Agent Signature in Email Templates

                                                                                                    Dear Zoho Team, I hope this message finds you well. We currently face a limitation when designing email templates in Zoho Desk. While we can create email templates and include a footer at the end, the agent signature is always appended by default at the
                                                                                                  • Custom Profile Agents Unable to Update Mandatory Phone Number in tickets under Zoho Desk

                                                                                                    Hi, While working in the Ticket module in Zoho Desk, agents with a custom profile are unable to update the Phone Number field (which is mandatory) under Account Information. The agents need to enter values such as "NA" or "Nil" in the field to close the
                                                                                                  • Response Violation - Zoho Desk

                                                                                                    Hi Team, I just need an information regarding the zoho desk - Response Violation and how can we avoid the tickets from getting the tickets response violated.
                                                                                                  • How to Replace an Assessment in a Job Opening on Zoho Recruit

                                                                                                    Hi everyone, I’m currently using Zoho Recruit and would like to replace the assessment linked to a specific job opening. I want to remove the existing assessment and add a new one. What is the best way to do this without losing any important data or affecting
                                                                                                  • Updating existing values in a list

                                                                                                    Is it possible to update an existing value in a list? For example if I wanted to append text to an existing string value that I had previously added to a list is that possible? I'm able to extract the existing value (get() function) and append the additional text, but can't find a way to add the new value back to the list in the same index location. One work around I found was to delete the existing list entry and then add the new value, however this changes the index location to the last entry in
                                                                                                  • Host not reachable

                                                                                                    Good morning. I have four mail accounts and they have been working well for years. Now, suddenly, I am unable to send any e-mails from any of them. I allways have this pop-up: Thank you. Regards. Luis Fernández
                                                                                                  • BIN Locations

                                                                                                    Hi, I’m new to Zoho inventory and unless Im missing something, I cannot find BIN locations anywhere in ‘items’? please tell me it’s there somewhere?!? Thanks
                                                                                                  • Zoho Marketing Campaign

                                                                                                    I want a details report of marketing API . which API i can use to get a full flexed detail of email campaign , sms , social media ,and all other campaigns ?
                                                                                                  • Zoho Marketing Automation APIs

                                                                                                    When I want to create New lead in marketing automation , I want to add First Name and Last Name as well along with Email but there is no option like this in API . Can you please give me the API which will fulfill my condition ?
                                                                                                  • Website not found when trying to unlock Zoho vault with fingerprint(authenticator) in windows 11

                                                                                                    Whenever I try to unlock the Zoho vault with fingerprint(authenticator) it shows the Website not found on the server. To replicate the issue follow the below steps: Download the zoho vault extension and login. And now open the zoho vault extension ->
                                                                                                  • Adding Folders in Android App

                                                                                                    Is it possible to create a new email folder within the Zoho Mail Android app?  Or can this only be done from the desktop version of Zoho Mail? Cheers!
                                                                                                  • Collaborative editing of spreadsheets by multiple users simultaneously - Is it really possible?

                                                                                                    I work in a SharePoint 2010/SharePoint Server 2010 environment and we use MS Office 2007(Excel 2007) . I have been trying to create a MS Office document which will allow multiple users to work on a spreadsheet simultaneously. For that I have: 1) Created a excel workbook and published as a workspace as suggested by Andrea Kalli in her link: http://www.wonderhowto.com/how-to-collaborate-files-between-sharepoint-and-office-2007-182172/ 2) Set up and saved the Excel Workbook as "Shared" and made it available
                                                                                                  • Ability for customer to give feedback after receipt of an order

                                                                                                    Is there any way we can receive feedback from customers regarding their order after delivery (other than just an email, obviuosly)? This is not the same as product reviews, as it may concern other points, but would ideally have an inbuilt reference to
                                                                                                  • Issue with EU MArketplace

                                                                                                    Hi It's super frustrating that many CRM / Zoho (whatever) extensions are not available in the EU Market place Example: https://marketplace.zoho.com/app/crm/time-tracker-extension-for-zoho-crm For now, can the team address the extension above, but on the
                                                                                                  • Conversion of functions from Google Spreadsheets

                                                                                                    Hello! I use this formula "=QUERY(ResumoOrdemVencimento!A3:O38;"SELECT A,B,C,D,E,F,G,H,I,J,K,L,M,N,O WHERE C != '' ORDER BY C,G")" in Google Sheets but when importing my spreadsheet into Zoho Sheets the formula was not converted. The QUERY function brings data from another spreadsheet, and then I sort and apply conditional formatting. The order of data will change automatically as I update the source spreadsheet. What Zoho Sheets function is equivalent to QUERY? I have some other spreadsheets to
                                                                                                  • Zoho Books Sandbox environment

                                                                                                    Hello. Is there a free sandbox environment for the developers using Zoho Books API? I am working on the Zoho Books add-on and currently not ready to buy a premium service - maybe later when my add-on will start to bring money. Right now I just need a
                                                                                                  • Zoho Books | Product Updates | November 2024

                                                                                                    Hello users, We are back with exciting new features and enhancements in Zoho Books. From multi-criteria workflows to writing off customer opening balances, discover the new updates designed to make your bookkeeping swift. Attach XRechnung to Invoices
                                                                                                  • Spell check sucks

                                                                                                    Come on guys, it's 2024 and your spell check is completely retarded. You gotta fix it.
                                                                                                  • Signature image logo not displaying in recipient mail clients

                                                                                                    Whenever I send an email to another person the image that forms part of my logo is not displayed just a broken link to: https://mail.zoho.com/mail/ImageSignature?fileName=Email-log.jpg&accountId=47238000000007001&storeName=NN1:-3205531763309921492 I can see the logo because I've got a zoho account and I'm logged on but others without a zoho account can't see it. How do I fix this? Thanks -Martin
                                                                                                  • Sales Order, what are the statuses under Confirmed and Closed

                                                                                                    Hi, I have to build a workflow in Deluge which should be triggered when Sales Order status is Confirmed or Closed. But these 2 states don't exist when you fetch a sales order. Which of the statuses are considered as Confirmed or Closed ? Here is a list
                                                                                                  • Notifications for calendar meetings

                                                                                                    So we have been happy users for a few months now. This is an important problem we face, since I have forgotten meetings already cause of lack of notifications. The problem: I have notifications (email, popup and notifications) set for my calendar by default.
                                                                                                  • Reusuable Sections & Universal Brand Settings

                                                                                                    Zoho Email Campaign setups take longer than other software I've used because it doesn't have reusable sections or universal brand settings (fonts and colors). These enhancements should be added to help us create our campaigns more easily.
                                                                                                  • Blockchain technology

                                                                                                    Blockchain technology is being used to revolutionize accounting and financial reporting. With blockchain, financial transactions are recorded on a decentralized ledger, making tracking transactions and verifying their accuracy easier. This technology
                                                                                                  • Este domínio já está associado a esta conta

                                                                                                    Fui fazer meu cadastro na zoho e quando digitei meu domínio recebi essa mensagem que meu domínio estava associado a uma conta que eu nem faço idéia de quem seja. Como que faço pra resolver isso? Atenciosamente, Anderson Souza.
                                                                                                  • not able to hit inventory api

                                                                                                    when i hit the api with my account keys and the access is provide by the client
                                                                                                  • Remove County field from Customer Address input screen (or allow input to be deleted)

                                                                                                    We are in the USA and have just noticed that there is now a County field in the Customer Address input screen (and maybe other areas of Zoho Books, but this is the one affecting us at the moment). County is not important to our business, and in fact we
                                                                                                  • Next Page