Prefill "field_data" on Zoho Sign not populating

Prefill "field_data" on Zoho Sign not populating

I'm trying to prefill some information from CRM Plus into a template using the zoho sign deluge task but for some reason, the data passed into the "field_data" object doesn't prefill the form.

A few notes
  1. I've confirmed that the function is successfully getting the info from CRM and applying it to the object
  2. Some of the returned fields from the CRM are null as they hadn't been entered yet (which is a possible use case, we'd like to prefill the info we have leaving anything we don't have blank)
  3. The field_data object is using field_text_data, field_date_data, field_boolean_data, and field_radio_data to hold the field data
  4. I've confirmed that the field labels provided in the field_data object match the field labels in the template
Code:
  1. PacketID is a function argument which is a zoho record
  2. A wrapper function is used for the zoho crm GetRecordById task which returns null to the parent function upon an error
  3. The standard State field in CRM was replaced with a dropdown for both Accounts and Contacts
  1. //Structure Variable Declarations
  2. response = Map();
  3. params = Map();
  4. data = Map();
  5. templates = Map();
  6. actions = List();
  7. field_data = Map();
  8. field_date_data = Map();
  9. field_boolean_data = Map();
  10. field_text_data = Map();
  11. field_radio_data = Map();

  12. //Get Records from CRM
  13. Packet = standalone.GetRecordById("Application_Packets",PacketID);
  14. if(Packet.isNull())
  15. {
  16. info "Error getting Application Packet";
  17. return null;
  18. }
  19. Participant = standalone.GetRecordById("Client_Company_Relations",Packet.get("Application_Participant").get("id"));
  20. if(Participant.isNull())
  21. {
  22. info "Error getting Application Participant";
  23. return null;
  24. }
  25. Contact = standalone.GetRecordById("Contacts",Packet.get("Client_Contact_Record").get("id"));
  26. if(Contact.isNull())
  27. {
  28. info "Error getting Contact";
  29. return null;
  30. }
  31. Account = standalone.GetRecordById("Accounts",Packet.get("Company_Account_Record").get("id"));
  32. if(Account.isNull())
  33. {
  34. info "Error getting Account";
  35. return null;
  36. }

  37. //Apply TemplateID to response structure
  38. response.put("templateID",<template id>); //template id redacted

  39. //Apply field data to field_data child objects
  40. field_text_data.put("Business Legal Name",Account.get("Account_Name"));
  41. field_text_data.put("Business DBA Name",Account.get("DBA_Name"));
  42. field_date_data.put("Start Date",Account.get("Business_Start_Date").toString("dd MMMM yyyy"));
  43. field_text_data.put("Business Website",Account.get("Website"));
  44. field_text_data.put("Business Address 1",Account.get("Street"));
  45. field_text_data.put("Business Address 2",Account.get("Street_2"));
  46. field_text_data.put("Business City",Account.get("City"));
  47. field_radio_data.put("Business State",Account.get("State"));
  48. field_text_data.put("Business Zip",Account.get("Zip_Code"));
  49. field_text_data.put("Business Phone 1",Account.get("Phone"));
  50. field_text_data.put("Business Phone 2",Account.get("Secondary Phone"));
  51. field_text_data.put("Business Fax",Account.get("Fax"));
  52. field_text_data.put("First Name",Contact.get("First_Name"));
  53. field_text_data.put("Last Name",Contact.get("Last_Name"));
  54. field_radio_data.put("Salutaion",Contact.get("Salutation"));
  55. field_text_data.put("Business Title",Participant.get("Company_Title"));
  56. field_text_data.put("Owner Percent",Participant.get("Ownership_Percent"));
  57. field_date_data.put("DOB",Contact.get("Date_of_Birth").toString("dd MMMM yyyy"));
  58. field_boolean_data.put("Is US Citizen",Contact.get("Is_US_Citizen"));
  59. field_radio_data.put("Preferred Contact Method",Contact.get("Preferred_Contact_Method"));
  60. field_text_data.put("Address 1",Contact.get("Mailing_Street"));
  61. field_text_data.put("Address 2",Contact.get("Mailing_Street_2"));
  62. field_text_data.put("City",Contact.get("Mailing_City"));
  63. field_radio_data.put("State",Contact.get("State"));
  64. field_text_data.put("Zip",Contact.get("Mailing_Zip"));
  65. field_text_data.put("Primary Phone",Contact.get("Primary_Phone"));
  66. field_text_data.put("Secondary Phone",Contact.get("Secondary_Phone"));
  67. field_text_data.put("Fax",Contact.get("Fax"));
  68. field_text_data.put("Client Email",Contact.get("Email"));

  69. //Apply child objects to field_data
  70. field_data.put("field_text_data", field_text_data);
  71. field_data.put("field_boolean_data", field_boolean_data);
  72. field_data.put("field_date_data", field_date_data);
  73. field_data.put("field_radio_data", field_radio_data);

  74. //Create Applicant Signer Action
  75. signerObj1 = Map();
  76. signerObj1.put("recipient_name",Contact.get("First_Name") + " " + Contact.get("Last_Name"));
  77. signerObj1.put("recipient_email",Contact.get("Email"));
  78. signerObj1.put("action_id","383560000000030044");
  79. signerObj1.put("action_type","SIGN");
  80. signerObj1.put("signing_order",1);
  81. signerObj1.put("role","Applicant");
  82. signerObj1.put("verify_recipient",false);
  83. signerObj1.put("private_notes","Kindly confirm and complete all the details in the funding application and accept it by signing.");
  84. actions.add(signerObj1);

  85. //Create Representative Signer Action
  86. signerObj2 = Map();
  87. signerObj2.put("recipient_name",Packet.get("Owner").get("name"));
  88. signerObj2.put("recipient_email",Packet.get("Owner").get("email"));
  89. signerObj2.put("action_id","383560000000030046");
  90. signerObj2.put("action_type","VIEW");
  91. signerObj2.put("signing_order",2);
  92. signerObj2.put("role","Representative");
  93. signerObj2.put("verify_recipient",false);
  94. actions.add(signerObj2);

  95. //Build and return completed Sign Args
  96. templates.put("field_data", field_data);
  97. templates.put("actions",actions);

  98. data.put("templates", templates);

  99. params.put("data",data);
  100. params.put("is_quicksend", true);

  101. response.put("params", params);

  102. return response;
                                                                                                                                                                                                                    These generated parameters are then passed to another deluge function that sends the Sign request (also using PacketID as a function parameter and a wrapper function for zoho's toMap function).
                                                                                                                                                                                                                    1. args = standalone.ToMap(standalone.GetAppOptions(PacketId));
                                                                                                                                                                                                                    2. signResponse = zoho.sign.createUsingTemplate(args.get("templateID"), args.get("params"), "zohosign");

                                                                                                                                                                                                                    3. return signResponse;
                                                                                                                                                                                                                    This successfully sends the sign request to the specified record but it doesn't prefill the data.  Any help would be greatly appreciated!
                                                                                                                                                                                                                      • Recent Topics

                                                                                                                                                                                                                      • UNAPPROVED record management

                                                                                                                                                                                                                        When the unapproved list of duplicates is long, one needs the some tools to manage them - when this list has over 1500 records, we cannot manage it without some tools, such as: 1. The ability to apply a filter - ie similar to creating a CREATE a NEW VIEW
                                                                                                                                                                                                                      • Zoho mail filter Add to WorkDrive doesnt't work

                                                                                                                                                                                                                        Hello, We have a problem with using the filter in the email. So, we want that when a bulk payment confirmation from the online store arrives, this email is automatically saved in HTML format on the drive using the action 'Add to Zoho WorkDrive -> Email
                                                                                                                                                                                                                      • Introducing Zia GenAI: Zoho's Native Generative AI for Zoho Desk

                                                                                                                                                                                                                        Hello everyone, Zia GenAI is available on Early Access for Zoho Desk Enterprise subscribers. Kindly fill out this Registration Form to request early access. We are excited to announce the Beta release of Zia GenAI in Zoho Desk, now available through our
                                                                                                                                                                                                                      • Add blueprint buttons to listview and kanban

                                                                                                                                                                                                                        Hello, just started to use the Blueprints feature - really useful. I have one suggestion to help this work even better - can there be transition buttons that appear on the top of listview & Kanban? Maybe an option as well - "Blueprint transitions appear
                                                                                                                                                                                                                      • Deleted message in SPAM

                                                                                                                                                                                                                        In one of my gmail accounts (getnickifit@gmail.com) I had an email from PayPal in the SPAM folder. I thought I was moving the message to the inbox from the zoho mobile but it looks like it was deleted. It is no where to be found--inbox, trash, etc. Can it be restored?
                                                                                                                                                                                                                      • CRM x WorkDrive: File storage for new CRM signups is now powered by WorkDrive

                                                                                                                                                                                                                        Availability Editions: All DCs: All Release plan: Released for new signups in all DCs. It will be enabled for existing users in a phased manner in the upcoming months. Help documentation: Documents in Zoho CRM Manage folders in Documents tab Manage files
                                                                                                                                                                                                                      • Multiple Facebook Pages under Single Brand

                                                                                                                                                                                                                        Hi everyone, I'd like to know if there is a possibility of connecting multiple Facebook pages under a single brand on Zoho? At the moment, there are different Facebook pages of a single brand and would want to keep under the same brand on Zoho as we
                                                                                                                                                                                                                      • Zoho Books Estimate to Zoho CRM quote?

                                                                                                                                                                                                                        I'm not sure why this isnt automatic, but maybe I'm missing something. When we create a quote in zoho books we have a custom function that pushes the contact into a deal within the CRM. I can not for the life of me figure out how to push an estimate from
                                                                                                                                                                                                                      • Zoho Developer Hangout (ZDH) – Episode 17 | Optimizing Organizational Processes through Automation

                                                                                                                                                                                                                        Hey developers! Running a business can get quite overwhelming especially when juggling multiple tools like those in the Zoho ecosystem. Although integrating most of them is a piece of cake, manual intervention is needed at times. Being able to automate
                                                                                                                                                                                                                      • Apple Messages for Business in Omnichannel communications?

                                                                                                                                                                                                                        Hello, Apple launched "Apple Messages for Business" but Zoho CRM or Zoho Desk don't appear in the list of possible integrators. Zoho already promotes https://www.zoho.com/crm/omnichannel.html Omni Channel integration, but Apple Messages does not yet appear.
                                                                                                                                                                                                                      • Kaizen #140 - Integrating Blog feed scraping service into Zoho CRM Dashboard

                                                                                                                                                                                                                        Howdy Tech Wizards! Welcome to a fresh week of kaizen. This week, we will look at how to create a dashboard widget that displays the most recent blog post of your preferred products/services, updated daily at a specific time. We will leverage the potential
                                                                                                                                                                                                                      • Schedule meeting monthly on a particular day

                                                                                                                                                                                                                        Suppose I wanted to schedule HR meeting every month on the first Tuesday with each employee separately for 20 minutes each. How could I automate these type of meetings? And if Sunday occurs on the first Tuesday I would like to shift that meeting on next
                                                                                                                                                                                                                      • In ZohoCRM Dashboards - Editing Shown Columns on Drilldown of Components

                                                                                                                                                                                                                        Hello! I'm working with some Dashboards inside of ZohoCRM. When creating a component (In this case, specifically a KPI Ranking Component), I'd like to customize which fields show when trying to drilldown. For example, when I click on one of the sales
                                                                                                                                                                                                                      • Added Domain but SSL is not being set properly

                                                                                                                                                                                                                        We added a Domain for our landing page and it pushed an SSL cert to it. The Cert is generated by LetsEncrypt, but it doesn't match our subdomain (i.e., it's just pointing to zohosites.com). How do we get the cert properly setup there?
                                                                                                                                                                                                                      • Zoho CRM Widget not displaying 2 related lists (JS)

                                                                                                                                                                                                                        Okay so I basically have 2 relatedLists that I want to get and render: ZOHO.CRM.API.getRelatedRecords({ Entity: data.Entity, RecordID: data.EntityId, RelatedList: "Notes", page: 1, per_page: 200, }) ZOHO.CRM.API.getRelatedRecords({ Entity: data.Entity,
                                                                                                                                                                                                                      • KPI widget with percentage

                                                                                                                                                                                                                        I'm trying to create a KPM widget that displays current performance as a percentage - something like the picture below. I've tried following the instructions at https://www.zoho.com/analytics/help/dashboard/kpi-widgets.html#chart but nothing ends up being
                                                                                                                                                                                                                      • Canvas List View Not Saving

                                                                                                                                                                                                                        Hi, I am trying to edit a list view to look different depending on the tags. Everything worked well and saved well with multiple views, but when I have gone back in to make some small changes like moving one of the icons it comes up with the error message
                                                                                                                                                                                                                      • QR code image is not exported in PDFs

                                                                                                                                                                                                                        The new QR code field works fine when I include it in a report template and I choose the print option: https://creatorapp.zoho.com/<username>/<app_link_name>/record-print/<report_link_name>/<record_ID>/ But when I try to save the document to a .pdf file
                                                                                                                                                                                                                      • QR codes in templates

                                                                                                                                                                                                                        I'm excited about the new QR code generator. I have included a QR code that contains the record ID setting "${ID}" as input data. In the report detail it works perfectly but when printing it in a template the code is not shown.
                                                                                                                                                                                                                      • This mobile number has been marked spam. Please contact support.

                                                                                                                                                                                                                        Hi Support, Can you tell me why number was marked as spam. I have having difficult to add my number as you keep requesting i must use it. My number is +63....163 Or is Zoho company excluding Philippines from their services?
                                                                                                                                                                                                                      • Zoho CRM search not working

                                                                                                                                                                                                                        The search bar is not showing any results in our CRM installation. We have a lot of items and can not search them by using the navigation each time. Can someone please check this asap.
                                                                                                                                                                                                                      • Reload page with widget

                                                                                                                                                                                                                        Hi all, I hope I can find some help here. I developed a small widget for Creator that is integrated into a page as a component. The page contains other content as well. When the widget is sent, the entire page should be reloaded to apply the changes to
                                                                                                                                                                                                                      • Tip of the week #37 - Manage all your Telegram business conversations directly from your shared inboxes.

                                                                                                                                                                                                                        Tired of switching between multiple apps to manage your business conversations? With Zoho TeamInbox's multichannel inboxes, connect your Telegram channel to a shared inbox. This way, your teams can easily handle c View, reply, and collaborate on them
                                                                                                                                                                                                                      • Tags on notes aren't syncing correctly on Android

                                                                                                                                                                                                                        I've created notes on the desktop version that have several tags assigned, but on both my Android devices those notes only have ONE of those tags instead of all of them, despite the actual content of the note being correctly synced, and I'm also starting
                                                                                                                                                                                                                      • Reports - custom layout - duplicate report

                                                                                                                                                                                                                        Do you also have this problem and what is the possible solution? I duplicate a report that has a "custom layout". Unfortunately the custom layout is not duplicated. To be improved for a future release by Zoho. I export the custom layout and import it...
                                                                                                                                                                                                                      • How to map a global picklist from one module to another

                                                                                                                                                                                                                        Hi there, i currently have a new field that is called sales office which we use for permission settings between our different offices located in different countries. It is a global set picklist with three different options: MY, SG and VN. I want to be
                                                                                                                                                                                                                      • Pageless mode needed to modernise Writer

                                                                                                                                                                                                                        When we switched from GSuite to Zoho, one of the easiest apps I found to give up, was Docs. In many ways, Writer has always been more powerful than Docs, especially in terms of workflows/fillable forms/etc. However, I went back into Docs because I notice
                                                                                                                                                                                                                      • Changing the Logo Size on Zoho Sites

                                                                                                                                                                                                                        My company logo incorporates both an image and text, and I would like it to be much more prominent on the page than is currently allowed by the small logo box in the template.  Is there any way to hide the page name and then make the logo box much bigger since my company name and logo are connected / are all in one file?  Thank you. 
                                                                                                                                                                                                                      • Is it possible to Select Item Serial Numbers from a Sales Order?

                                                                                                                                                                                                                        Our accepted estimates are converted to Sales orders for our warehouse staff to pick.  How can my warehouse staff select the serial numbers for an item when editing a Sales Order?  Logically when staff pull an item and have the serial in front of them they update the Sales Order and select the serial. I understand a serial can be added when creating an invoice but how can accounts team know the serial if the warehouse staff can't select it! A basic flaw!
                                                                                                                                                                                                                      • MORE BUGS: Client Script, Deluge and Widget JS SDK don't work as expected when trying to retrieve a record that has been "rejected" as part of an approval process.

                                                                                                                                                                                                                        Client Script $Page.record is null when accessing a record that has been "rejected" as part of an approval process. Deluge zoho.crm.getRecordById(moduleName, recordId) returns {"status":"failure"} when recordId is a valid, but rejected record. OK... I
                                                                                                                                                                                                                      • Zoho CRM Widget not displaying 2 related lists (JS)

                                                                                                                                                                                                                        Okay so I basically have 2 relatedLists that I want to get and render: ZOHO.CRM.API.getRelatedRecords({ Entity: data.Entity, RecordID: data.EntityId, RelatedList: "Notes", page: 1, per_page: 200, }) ZOHO.CRM.API.getRelatedRecords({ Entity: data.Entity,
                                                                                                                                                                                                                      • Zoho Books and Zoho Projects Task Status Update

                                                                                                                                                                                                                        How can we create an automation using custom functions for the following scenario. When our zoho books invoice status changes to paid. I want a task in Zoho projects to change to completed.
                                                                                                                                                                                                                      • Default Sort Order in Project Tasks View

                                                                                                                                                                                                                        It should be possible to specify a default sort order (or have the last explicit sort order restored upon reload) for the tasks in the project tasks view. Currently the sort order must be manually re-selected for each sub-group whenever any changes are
                                                                                                                                                                                                                      • Different content per social media account..

                                                                                                                                                                                                                        Is there a way to add different content per social media account on one post?
                                                                                                                                                                                                                      • Assigning Tasks and Requests to Groups... how do I?

                                                                                                                                                                                                                        Guys, I've spent many hours exploring Zoho Support and we are generally satisfied with the system.  I'm trying to understand how a system that has so much to offer can be missing GROUP assignment and queue functionality.  I am hoping that there is a way
                                                                                                                                                                                                                      • Parsing of SQL query failed. Please check the SQL syntax.

                                                                                                                                                                                                                        I am trying to have Zoho Analytics recognize that if the a Deal is in Stage "Need Docs" it should also be counted as a Deal in the Stage "New Lead" /*New Lead*/ SELECT "ID" 'New Lead' AS "Stage" From "Deals" Where "Stage" = 'Need Docs' Union All Error
                                                                                                                                                                                                                      • Where is the setting to enable/disable 2FA?

                                                                                                                                                                                                                        The following links show where enable/disable 2FA is supposed to appear, but neither appear for me: https://help.zoho.com/portal/en/kb/zohosites/faq/account/articles/how-do-i-enable-or-disable-two-factor-authentication-for-my-account shows Security >
                                                                                                                                                                                                                      • How to Assign Record Ownership in a Custom Form via API?

                                                                                                                                                                                                                        Hello everyone, I’ve created a custom form in Zoho People and I’m using the API to manage its records. I would like to know how I can assign ownership of these records to specific users via the API. Is there a specific parameter or field in the API request
                                                                                                                                                                                                                      • Customer Statement Template not matching when sending

                                                                                                                                                                                                                        Hi everyone! So when I send statements to our customers via Zoho Books, the message that appears by default does not match what I have written on the template Under settings -> email notifications -> sales -> customer statement We have a single default
                                                                                                                                                                                                                      • Working with keywords

                                                                                                                                                                                                                        Hello everyone, first time here so I will try to be brief. I am working on my company's data set. I have a table with all the images we have on line. For each image we hava a cell tha contains all keywords related to that image. I would like to explore
                                                                                                                                                                                                                      • Next Page