Submit Zoho Sign Request

Submit Zoho Sign Request

Hello,
I am working on a creator app that triggers a workflow that gets a file and creates a document in Zoho Sign.
Using that result, It adds recipient and fields and submits the request to send the document for signing.
The first part works fine, I can create the document and see it in Zoho Sign  but for some reason, the submitRequest method does nothing meaning that the recipients etc aren't added to the document and if I try to log the response nothing pops up.
Can any assistance be provided?

  1. // Define variables

    fullUrl = [insert url here]
    approverEmail = [insert email address here];
    pdfFile = invokeurl
    [
        url :fullUrl
        type :GET
        connection:"zohooauth"
    ];
    pdfFile.setParamName("file");
    res = zoho.sign.createDocument(pdfFile);
    if(res.getJSON("status") == 'success')
    {
        documents = res.getJSON("requests").getJSON("document_ids");
        documentId = documents.get(0).getJSON("document_id");
        totalPages = documents.get(0).getJSON("total_pages");
        requestId = res.get('requests').get("request_id");
        requestName = res.get('requests').get("request_name");
        input.Document_ID = documentId;
        pageNumber = totalPages - 1;
        actionMap = Map();
        actionMap.put("request_name",requestName);
        textFields = List();
        //     1st Signature Field
        textField1 = Map();
        textField1.put("field_name","Signature");
        textField1.put("is_mandatory","true");
        textField1.put("field_type_name","Signature");
        textField1.put("field_category","image");
        textField1.put("field_label","Signature");
        textField1.put("document_id",documentId);
        textField1.put("x_coord",240);
        textField1.put("y_coord",815);
        textField1.put("page_no",pageNumber);
        textFields.add(textField1);
        fieldMap = Map();
        fieldMap.put("fields",{"text_fields":textFields});
        fieldMap.put("recipient_name","Approver 1");
        fieldMap.put("recipient_email",approverEmail);
        fieldMap.put("action_type","SIGN");
        fieldList1 = List();
        fieldList1.add(fieldMap);
        // Create and add recipients to a list
        actionMap.put("actions",fieldList1);
        //     Create a request map and add recipient list
        submitMap = Map();
        submitMap.put("requests",actionMap);
        // Perform submit request task to insert fields and send the document to the specified recipients
        response = zoho.sign.submitRequest(requestId,{"data":submitMap}, "zohooauth");
        info response;
      
    }






                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


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




                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now