Docusign not prefilling documents before sending











up vote
1
down vote

favorite
1












I am having issues when sending documents for a recipient to sign it. The documents should be prefilled using the data from my database which works fine. I know this because when I var_dump $this->textTabs I can see the data. $global is false.



The issue I am having is that when the recipient receives an email to sign the document, the fields which should be prefilled are blank. The Data Label matches the tabLabel in the code below and image This image shows an example of the Data Laebl



$this->textTabs = [
[
'tabLabel' => 'RegisteredName',
'value' => $contactData->company->name,
'global' => $global,
],
[
'tabLabel' => 'NumberOfEmployees',
'value' => $contactData->company->employee_size,
'global' => $global,
],
[
'tabLabel' => 'RegisteredNumber',
'value' => $contactData->company->reg_no,
'global' => $global,
],
[
'tabLabel' => 'SupplyAddress',
'value' => $supplyAddress_1 . $supplyAddress_2 . $supplyCity . $supplyTown . $supplyCounty . $supplyPostcode,
'global' => $global,
],
[
'tabLabel' => 'SicCode',
'value' => $contactData->company->gapSite->scat_code,
'global' => $global,
],
[
'tabLabel' => 'Recipient_UserTitle',
'value' => $title,
'global' => $global,
],
[
'tabLabel' => 'Recipient_UserName',
'value' => $title . $firstName . $lastName,
'global' => $global,
],
[
'tabLabel' => 'Recipient_Email',
'value' => $contactData->email,
'global' => $global,
],
[
'tabLabel' => 'ContactTelephone',
'value' => $contactData->telephone,
'global' => $global,
],
];

private function send(string $status): ?array
{
try {
return Docusign::createEnvelope([
'templateId' => $this->templateId,
'emailSubject' => $this->emailSubject,
'status' => $status,
'templateRoles' => [
[
'name' => $this->recipient['name'],
'email' => $this->recipient['email'],
'roleName' => 'Client',
'tabs' => [
'textTabs' => $this->textTabs,
/* 'signHereTabs' => [
[
"xPosition" => 400,
"yPosition" => 263,
"documentId" => 1,
"pageNumber" => 6
]
],
*/
]
]
],
'eventNotification' => [
'url' => 'https://webhook.site/697fabec-145a-491f-87ce-1d62be82b298',
'LoggingEnabled' => true,
'RequireAcknowledgment' => true,
'UseSoapInterface' => false,
'IncludeCertificateWithSoap' => false,
'SignMessageWithX509Cert' => false,
'includeDocuments' => true,
'includeEnvelopeVoidReason' => true,
'includeTimeZone' => true,
'includeSenderAccountAsCustomField' => true,
'includeDocumentFields' => true,
'includeCertificateOfCompletion' => true,
'envelopeEventStatusCode' => $this->getRecipientEvents(),
'recipientEvents' => $this->getEventNotification(),
]
]);

} catch (Exception $e) {

}
}


The fact That recipient receives the email to sign the document, already eliminate any issue to do with my code but why is it not prefilling with the data?










share|improve this question


























    up vote
    1
    down vote

    favorite
    1












    I am having issues when sending documents for a recipient to sign it. The documents should be prefilled using the data from my database which works fine. I know this because when I var_dump $this->textTabs I can see the data. $global is false.



    The issue I am having is that when the recipient receives an email to sign the document, the fields which should be prefilled are blank. The Data Label matches the tabLabel in the code below and image This image shows an example of the Data Laebl



    $this->textTabs = [
    [
    'tabLabel' => 'RegisteredName',
    'value' => $contactData->company->name,
    'global' => $global,
    ],
    [
    'tabLabel' => 'NumberOfEmployees',
    'value' => $contactData->company->employee_size,
    'global' => $global,
    ],
    [
    'tabLabel' => 'RegisteredNumber',
    'value' => $contactData->company->reg_no,
    'global' => $global,
    ],
    [
    'tabLabel' => 'SupplyAddress',
    'value' => $supplyAddress_1 . $supplyAddress_2 . $supplyCity . $supplyTown . $supplyCounty . $supplyPostcode,
    'global' => $global,
    ],
    [
    'tabLabel' => 'SicCode',
    'value' => $contactData->company->gapSite->scat_code,
    'global' => $global,
    ],
    [
    'tabLabel' => 'Recipient_UserTitle',
    'value' => $title,
    'global' => $global,
    ],
    [
    'tabLabel' => 'Recipient_UserName',
    'value' => $title . $firstName . $lastName,
    'global' => $global,
    ],
    [
    'tabLabel' => 'Recipient_Email',
    'value' => $contactData->email,
    'global' => $global,
    ],
    [
    'tabLabel' => 'ContactTelephone',
    'value' => $contactData->telephone,
    'global' => $global,
    ],
    ];

    private function send(string $status): ?array
    {
    try {
    return Docusign::createEnvelope([
    'templateId' => $this->templateId,
    'emailSubject' => $this->emailSubject,
    'status' => $status,
    'templateRoles' => [
    [
    'name' => $this->recipient['name'],
    'email' => $this->recipient['email'],
    'roleName' => 'Client',
    'tabs' => [
    'textTabs' => $this->textTabs,
    /* 'signHereTabs' => [
    [
    "xPosition" => 400,
    "yPosition" => 263,
    "documentId" => 1,
    "pageNumber" => 6
    ]
    ],
    */
    ]
    ]
    ],
    'eventNotification' => [
    'url' => 'https://webhook.site/697fabec-145a-491f-87ce-1d62be82b298',
    'LoggingEnabled' => true,
    'RequireAcknowledgment' => true,
    'UseSoapInterface' => false,
    'IncludeCertificateWithSoap' => false,
    'SignMessageWithX509Cert' => false,
    'includeDocuments' => true,
    'includeEnvelopeVoidReason' => true,
    'includeTimeZone' => true,
    'includeSenderAccountAsCustomField' => true,
    'includeDocumentFields' => true,
    'includeCertificateOfCompletion' => true,
    'envelopeEventStatusCode' => $this->getRecipientEvents(),
    'recipientEvents' => $this->getEventNotification(),
    ]
    ]);

    } catch (Exception $e) {

    }
    }


    The fact That recipient receives the email to sign the document, already eliminate any issue to do with my code but why is it not prefilling with the data?










    share|improve this question
























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I am having issues when sending documents for a recipient to sign it. The documents should be prefilled using the data from my database which works fine. I know this because when I var_dump $this->textTabs I can see the data. $global is false.



      The issue I am having is that when the recipient receives an email to sign the document, the fields which should be prefilled are blank. The Data Label matches the tabLabel in the code below and image This image shows an example of the Data Laebl



      $this->textTabs = [
      [
      'tabLabel' => 'RegisteredName',
      'value' => $contactData->company->name,
      'global' => $global,
      ],
      [
      'tabLabel' => 'NumberOfEmployees',
      'value' => $contactData->company->employee_size,
      'global' => $global,
      ],
      [
      'tabLabel' => 'RegisteredNumber',
      'value' => $contactData->company->reg_no,
      'global' => $global,
      ],
      [
      'tabLabel' => 'SupplyAddress',
      'value' => $supplyAddress_1 . $supplyAddress_2 . $supplyCity . $supplyTown . $supplyCounty . $supplyPostcode,
      'global' => $global,
      ],
      [
      'tabLabel' => 'SicCode',
      'value' => $contactData->company->gapSite->scat_code,
      'global' => $global,
      ],
      [
      'tabLabel' => 'Recipient_UserTitle',
      'value' => $title,
      'global' => $global,
      ],
      [
      'tabLabel' => 'Recipient_UserName',
      'value' => $title . $firstName . $lastName,
      'global' => $global,
      ],
      [
      'tabLabel' => 'Recipient_Email',
      'value' => $contactData->email,
      'global' => $global,
      ],
      [
      'tabLabel' => 'ContactTelephone',
      'value' => $contactData->telephone,
      'global' => $global,
      ],
      ];

      private function send(string $status): ?array
      {
      try {
      return Docusign::createEnvelope([
      'templateId' => $this->templateId,
      'emailSubject' => $this->emailSubject,
      'status' => $status,
      'templateRoles' => [
      [
      'name' => $this->recipient['name'],
      'email' => $this->recipient['email'],
      'roleName' => 'Client',
      'tabs' => [
      'textTabs' => $this->textTabs,
      /* 'signHereTabs' => [
      [
      "xPosition" => 400,
      "yPosition" => 263,
      "documentId" => 1,
      "pageNumber" => 6
      ]
      ],
      */
      ]
      ]
      ],
      'eventNotification' => [
      'url' => 'https://webhook.site/697fabec-145a-491f-87ce-1d62be82b298',
      'LoggingEnabled' => true,
      'RequireAcknowledgment' => true,
      'UseSoapInterface' => false,
      'IncludeCertificateWithSoap' => false,
      'SignMessageWithX509Cert' => false,
      'includeDocuments' => true,
      'includeEnvelopeVoidReason' => true,
      'includeTimeZone' => true,
      'includeSenderAccountAsCustomField' => true,
      'includeDocumentFields' => true,
      'includeCertificateOfCompletion' => true,
      'envelopeEventStatusCode' => $this->getRecipientEvents(),
      'recipientEvents' => $this->getEventNotification(),
      ]
      ]);

      } catch (Exception $e) {

      }
      }


      The fact That recipient receives the email to sign the document, already eliminate any issue to do with my code but why is it not prefilling with the data?










      share|improve this question













      I am having issues when sending documents for a recipient to sign it. The documents should be prefilled using the data from my database which works fine. I know this because when I var_dump $this->textTabs I can see the data. $global is false.



      The issue I am having is that when the recipient receives an email to sign the document, the fields which should be prefilled are blank. The Data Label matches the tabLabel in the code below and image This image shows an example of the Data Laebl



      $this->textTabs = [
      [
      'tabLabel' => 'RegisteredName',
      'value' => $contactData->company->name,
      'global' => $global,
      ],
      [
      'tabLabel' => 'NumberOfEmployees',
      'value' => $contactData->company->employee_size,
      'global' => $global,
      ],
      [
      'tabLabel' => 'RegisteredNumber',
      'value' => $contactData->company->reg_no,
      'global' => $global,
      ],
      [
      'tabLabel' => 'SupplyAddress',
      'value' => $supplyAddress_1 . $supplyAddress_2 . $supplyCity . $supplyTown . $supplyCounty . $supplyPostcode,
      'global' => $global,
      ],
      [
      'tabLabel' => 'SicCode',
      'value' => $contactData->company->gapSite->scat_code,
      'global' => $global,
      ],
      [
      'tabLabel' => 'Recipient_UserTitle',
      'value' => $title,
      'global' => $global,
      ],
      [
      'tabLabel' => 'Recipient_UserName',
      'value' => $title . $firstName . $lastName,
      'global' => $global,
      ],
      [
      'tabLabel' => 'Recipient_Email',
      'value' => $contactData->email,
      'global' => $global,
      ],
      [
      'tabLabel' => 'ContactTelephone',
      'value' => $contactData->telephone,
      'global' => $global,
      ],
      ];

      private function send(string $status): ?array
      {
      try {
      return Docusign::createEnvelope([
      'templateId' => $this->templateId,
      'emailSubject' => $this->emailSubject,
      'status' => $status,
      'templateRoles' => [
      [
      'name' => $this->recipient['name'],
      'email' => $this->recipient['email'],
      'roleName' => 'Client',
      'tabs' => [
      'textTabs' => $this->textTabs,
      /* 'signHereTabs' => [
      [
      "xPosition" => 400,
      "yPosition" => 263,
      "documentId" => 1,
      "pageNumber" => 6
      ]
      ],
      */
      ]
      ]
      ],
      'eventNotification' => [
      'url' => 'https://webhook.site/697fabec-145a-491f-87ce-1d62be82b298',
      'LoggingEnabled' => true,
      'RequireAcknowledgment' => true,
      'UseSoapInterface' => false,
      'IncludeCertificateWithSoap' => false,
      'SignMessageWithX509Cert' => false,
      'includeDocuments' => true,
      'includeEnvelopeVoidReason' => true,
      'includeTimeZone' => true,
      'includeSenderAccountAsCustomField' => true,
      'includeDocumentFields' => true,
      'includeCertificateOfCompletion' => true,
      'envelopeEventStatusCode' => $this->getRecipientEvents(),
      'recipientEvents' => $this->getEventNotification(),
      ]
      ]);

      } catch (Exception $e) {

      }
      }


      The fact That recipient receives the email to sign the document, already eliminate any issue to do with my code but why is it not prefilling with the data?







      php laravel docusignapi docusign






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 23 hours ago









      Sarah James

      13410




      13410
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          After a while, I decided to create a new docusign account and this seems to have solved the issue. I believe my account was bugger or maybe some technical issue on docusign,






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53265886%2fdocusign-not-prefilling-documents-before-sending%23new-answer', 'question_page');
            }
            );

            Post as a guest
































            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            After a while, I decided to create a new docusign account and this seems to have solved the issue. I believe my account was bugger or maybe some technical issue on docusign,






            share|improve this answer

























              up vote
              0
              down vote













              After a while, I decided to create a new docusign account and this seems to have solved the issue. I believe my account was bugger or maybe some technical issue on docusign,






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                After a while, I decided to create a new docusign account and this seems to have solved the issue. I believe my account was bugger or maybe some technical issue on docusign,






                share|improve this answer












                After a while, I decided to create a new docusign account and this seems to have solved the issue. I believe my account was bugger or maybe some technical issue on docusign,







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 5 hours ago









                Sarah James

                13410




                13410






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53265886%2fdocusign-not-prefilling-documents-before-sending%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest




















































































                    Popular posts from this blog

                    How to change which sound is reproduced for terminal bell?

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents