Docusign: How do I redirect a user after remote signing (email) to my site using PHP?












0















I'm using Laravel 5.4 and the docusign/esign-client 3 package. On my site I redirect a user to a document in Docusign and then redirect them back to my site to download and update my database after theyve signed it. At the same time I send them an email. My question is how do I redirect them back to my site if they clicked on the email instead of landing on the document directly from my site?



I've tried using the method TemplateRole.setEmbeddedRecipientStartUrl and it does redirect me prior to sending them to the document but I don't get any information about the envelope. Ideally I would like send them directly to docusign and then redirect them back to my site after signing when clicking the email. How do I do this? or whats the correct code to get this working?



      <?php
//fill in document fields
$text_tabs = ;
foreach($custom_fields as $custom_field_name=>$custom_field_value){
$text_tabs = (new DocuSigneSignModelText())
->setTabLabel($custom_field_name)
->setValue($custom_field_value);
}

$tabs = (new DocuSigneSignModelTabs())
->setTextTabs($text_tabs);
//end fill in document fields


// assign recipient to template role by setting name, email, and role name. Note that the
// template role name must match the placeholder role name saved in your account template.
$templateRole = (new DocuSigneSignModelTemplateRole())
->setEmail($email)
->setName($name)
//->setEmbeddedRecipientStartUrl(route("test1"))
->setEmbeddedRecipientStartUrl("SIGN_AT_DOCUSIGN")//sends user directly to docusign
->setClientUserId($rand_user_id)
->setTabs($tabs)
->setRoleName("Applicant");


//webhook config
$envelope_events = [
(new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent"),
(new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("delivered"),
(new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("completed"),
(new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("declined"),
(new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("voided"),
(new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent"),
(new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent")
];

$recipient_events = [
(new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Sent"),
(new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Delivered"),
(new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Completed"),
(new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Declined"),
(new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("AuthenticationFailed"),
(new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("AutoResponded")
];

/*NOTE *****
//make sure to add route url to $except in HttpMiddlewareVerifyCsrfToken*/
$event_notification = (new DocuSigneSignModelEventNotification())
->setUrl(route("webhook"))//url webhook goes to
->setLoggingEnabled("true")
->setRequireAcknowledgment("true")
->setUseSoapInterface("false")
->setIncludeCertificateWithSoap("false")
->setSignMessageWithX509Cert("false")
->setIncludeDocuments("true")
->setIncludeEnvelopeVoidReason("true")
->setIncludeTimeZone("true")
->setIncludeSenderAccountAsCustomField("true")
->setIncludeDocumentFields("true")
->setIncludeCertificateOfCompletion("true")
->setEnvelopeEvents($envelope_events)
->setRecipientEvents($recipient_events);
//end webhook config







// instantiate a new envelope object and configure settings
$envelop_definition = (new DocuSigneSignModelEnvelopeDefinition())
->setEmailSubject("Docusign Test")
->setTemplateId($template_id)
->setTemplateRoles(array($templateRole))
//->setRecipients($recipients)
->setEventNotification($event_notification)
->setStatus("sent");// set envelope status to "sent" to immediately send the signature request


// optional envelope parameters
$options = (new DocuSigneSignApiEnvelopesApiCreateEnvelopeOptions())
->setCdseMode(null)
->setMergeRolesOnDraft(null);

// create and send the envelope (aka signature request)
$envelopeApi = new DocuSigneSignApiEnvelopesApi($this->api_client);

$envelop_summary = $envelopeApi->createEnvelope($this->account_id, $envelop_definition, $options);
if(!empty($envelop_summary)){

$envelop_summary = json_decode($envelop_summary,true);


$recipient_view_request = ( new DocuSigneSignModelRecipientViewRequest() )
->setReturnUrl( route("return_url_for_document") )
->setClientUserId($rand_user_id)
->setAuthenticationMethod("email")
->setUserName($name)
->setEmail($email);

try{
$signing_view = $envelopeApi->createRecipientView($this->account_id, $envelop_summary["envelopeId"], $recipient_view_request);

$signing_url = $signing_view->getUrl();
$envelop_summary["signing_url"] = $signing_url;

return $envelop_summary;

} catch (DocuSigneSignApiException $e){
echo "Error connecting Docusign : " . $e->getResponseBody()->errorCode . " " . $e->getResponseBody()->message;
}
}









share|improve this question



























    0















    I'm using Laravel 5.4 and the docusign/esign-client 3 package. On my site I redirect a user to a document in Docusign and then redirect them back to my site to download and update my database after theyve signed it. At the same time I send them an email. My question is how do I redirect them back to my site if they clicked on the email instead of landing on the document directly from my site?



    I've tried using the method TemplateRole.setEmbeddedRecipientStartUrl and it does redirect me prior to sending them to the document but I don't get any information about the envelope. Ideally I would like send them directly to docusign and then redirect them back to my site after signing when clicking the email. How do I do this? or whats the correct code to get this working?



          <?php
    //fill in document fields
    $text_tabs = ;
    foreach($custom_fields as $custom_field_name=>$custom_field_value){
    $text_tabs = (new DocuSigneSignModelText())
    ->setTabLabel($custom_field_name)
    ->setValue($custom_field_value);
    }

    $tabs = (new DocuSigneSignModelTabs())
    ->setTextTabs($text_tabs);
    //end fill in document fields


    // assign recipient to template role by setting name, email, and role name. Note that the
    // template role name must match the placeholder role name saved in your account template.
    $templateRole = (new DocuSigneSignModelTemplateRole())
    ->setEmail($email)
    ->setName($name)
    //->setEmbeddedRecipientStartUrl(route("test1"))
    ->setEmbeddedRecipientStartUrl("SIGN_AT_DOCUSIGN")//sends user directly to docusign
    ->setClientUserId($rand_user_id)
    ->setTabs($tabs)
    ->setRoleName("Applicant");


    //webhook config
    $envelope_events = [
    (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent"),
    (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("delivered"),
    (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("completed"),
    (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("declined"),
    (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("voided"),
    (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent"),
    (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent")
    ];

    $recipient_events = [
    (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Sent"),
    (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Delivered"),
    (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Completed"),
    (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Declined"),
    (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("AuthenticationFailed"),
    (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("AutoResponded")
    ];

    /*NOTE *****
    //make sure to add route url to $except in HttpMiddlewareVerifyCsrfToken*/
    $event_notification = (new DocuSigneSignModelEventNotification())
    ->setUrl(route("webhook"))//url webhook goes to
    ->setLoggingEnabled("true")
    ->setRequireAcknowledgment("true")
    ->setUseSoapInterface("false")
    ->setIncludeCertificateWithSoap("false")
    ->setSignMessageWithX509Cert("false")
    ->setIncludeDocuments("true")
    ->setIncludeEnvelopeVoidReason("true")
    ->setIncludeTimeZone("true")
    ->setIncludeSenderAccountAsCustomField("true")
    ->setIncludeDocumentFields("true")
    ->setIncludeCertificateOfCompletion("true")
    ->setEnvelopeEvents($envelope_events)
    ->setRecipientEvents($recipient_events);
    //end webhook config







    // instantiate a new envelope object and configure settings
    $envelop_definition = (new DocuSigneSignModelEnvelopeDefinition())
    ->setEmailSubject("Docusign Test")
    ->setTemplateId($template_id)
    ->setTemplateRoles(array($templateRole))
    //->setRecipients($recipients)
    ->setEventNotification($event_notification)
    ->setStatus("sent");// set envelope status to "sent" to immediately send the signature request


    // optional envelope parameters
    $options = (new DocuSigneSignApiEnvelopesApiCreateEnvelopeOptions())
    ->setCdseMode(null)
    ->setMergeRolesOnDraft(null);

    // create and send the envelope (aka signature request)
    $envelopeApi = new DocuSigneSignApiEnvelopesApi($this->api_client);

    $envelop_summary = $envelopeApi->createEnvelope($this->account_id, $envelop_definition, $options);
    if(!empty($envelop_summary)){

    $envelop_summary = json_decode($envelop_summary,true);


    $recipient_view_request = ( new DocuSigneSignModelRecipientViewRequest() )
    ->setReturnUrl( route("return_url_for_document") )
    ->setClientUserId($rand_user_id)
    ->setAuthenticationMethod("email")
    ->setUserName($name)
    ->setEmail($email);

    try{
    $signing_view = $envelopeApi->createRecipientView($this->account_id, $envelop_summary["envelopeId"], $recipient_view_request);

    $signing_url = $signing_view->getUrl();
    $envelop_summary["signing_url"] = $signing_url;

    return $envelop_summary;

    } catch (DocuSigneSignApiException $e){
    echo "Error connecting Docusign : " . $e->getResponseBody()->errorCode . " " . $e->getResponseBody()->message;
    }
    }









    share|improve this question

























      0












      0








      0








      I'm using Laravel 5.4 and the docusign/esign-client 3 package. On my site I redirect a user to a document in Docusign and then redirect them back to my site to download and update my database after theyve signed it. At the same time I send them an email. My question is how do I redirect them back to my site if they clicked on the email instead of landing on the document directly from my site?



      I've tried using the method TemplateRole.setEmbeddedRecipientStartUrl and it does redirect me prior to sending them to the document but I don't get any information about the envelope. Ideally I would like send them directly to docusign and then redirect them back to my site after signing when clicking the email. How do I do this? or whats the correct code to get this working?



            <?php
      //fill in document fields
      $text_tabs = ;
      foreach($custom_fields as $custom_field_name=>$custom_field_value){
      $text_tabs = (new DocuSigneSignModelText())
      ->setTabLabel($custom_field_name)
      ->setValue($custom_field_value);
      }

      $tabs = (new DocuSigneSignModelTabs())
      ->setTextTabs($text_tabs);
      //end fill in document fields


      // assign recipient to template role by setting name, email, and role name. Note that the
      // template role name must match the placeholder role name saved in your account template.
      $templateRole = (new DocuSigneSignModelTemplateRole())
      ->setEmail($email)
      ->setName($name)
      //->setEmbeddedRecipientStartUrl(route("test1"))
      ->setEmbeddedRecipientStartUrl("SIGN_AT_DOCUSIGN")//sends user directly to docusign
      ->setClientUserId($rand_user_id)
      ->setTabs($tabs)
      ->setRoleName("Applicant");


      //webhook config
      $envelope_events = [
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("delivered"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("completed"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("declined"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("voided"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent")
      ];

      $recipient_events = [
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Sent"),
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Delivered"),
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Completed"),
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Declined"),
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("AuthenticationFailed"),
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("AutoResponded")
      ];

      /*NOTE *****
      //make sure to add route url to $except in HttpMiddlewareVerifyCsrfToken*/
      $event_notification = (new DocuSigneSignModelEventNotification())
      ->setUrl(route("webhook"))//url webhook goes to
      ->setLoggingEnabled("true")
      ->setRequireAcknowledgment("true")
      ->setUseSoapInterface("false")
      ->setIncludeCertificateWithSoap("false")
      ->setSignMessageWithX509Cert("false")
      ->setIncludeDocuments("true")
      ->setIncludeEnvelopeVoidReason("true")
      ->setIncludeTimeZone("true")
      ->setIncludeSenderAccountAsCustomField("true")
      ->setIncludeDocumentFields("true")
      ->setIncludeCertificateOfCompletion("true")
      ->setEnvelopeEvents($envelope_events)
      ->setRecipientEvents($recipient_events);
      //end webhook config







      // instantiate a new envelope object and configure settings
      $envelop_definition = (new DocuSigneSignModelEnvelopeDefinition())
      ->setEmailSubject("Docusign Test")
      ->setTemplateId($template_id)
      ->setTemplateRoles(array($templateRole))
      //->setRecipients($recipients)
      ->setEventNotification($event_notification)
      ->setStatus("sent");// set envelope status to "sent" to immediately send the signature request


      // optional envelope parameters
      $options = (new DocuSigneSignApiEnvelopesApiCreateEnvelopeOptions())
      ->setCdseMode(null)
      ->setMergeRolesOnDraft(null);

      // create and send the envelope (aka signature request)
      $envelopeApi = new DocuSigneSignApiEnvelopesApi($this->api_client);

      $envelop_summary = $envelopeApi->createEnvelope($this->account_id, $envelop_definition, $options);
      if(!empty($envelop_summary)){

      $envelop_summary = json_decode($envelop_summary,true);


      $recipient_view_request = ( new DocuSigneSignModelRecipientViewRequest() )
      ->setReturnUrl( route("return_url_for_document") )
      ->setClientUserId($rand_user_id)
      ->setAuthenticationMethod("email")
      ->setUserName($name)
      ->setEmail($email);

      try{
      $signing_view = $envelopeApi->createRecipientView($this->account_id, $envelop_summary["envelopeId"], $recipient_view_request);

      $signing_url = $signing_view->getUrl();
      $envelop_summary["signing_url"] = $signing_url;

      return $envelop_summary;

      } catch (DocuSigneSignApiException $e){
      echo "Error connecting Docusign : " . $e->getResponseBody()->errorCode . " " . $e->getResponseBody()->message;
      }
      }









      share|improve this question














      I'm using Laravel 5.4 and the docusign/esign-client 3 package. On my site I redirect a user to a document in Docusign and then redirect them back to my site to download and update my database after theyve signed it. At the same time I send them an email. My question is how do I redirect them back to my site if they clicked on the email instead of landing on the document directly from my site?



      I've tried using the method TemplateRole.setEmbeddedRecipientStartUrl and it does redirect me prior to sending them to the document but I don't get any information about the envelope. Ideally I would like send them directly to docusign and then redirect them back to my site after signing when clicking the email. How do I do this? or whats the correct code to get this working?



            <?php
      //fill in document fields
      $text_tabs = ;
      foreach($custom_fields as $custom_field_name=>$custom_field_value){
      $text_tabs = (new DocuSigneSignModelText())
      ->setTabLabel($custom_field_name)
      ->setValue($custom_field_value);
      }

      $tabs = (new DocuSigneSignModelTabs())
      ->setTextTabs($text_tabs);
      //end fill in document fields


      // assign recipient to template role by setting name, email, and role name. Note that the
      // template role name must match the placeholder role name saved in your account template.
      $templateRole = (new DocuSigneSignModelTemplateRole())
      ->setEmail($email)
      ->setName($name)
      //->setEmbeddedRecipientStartUrl(route("test1"))
      ->setEmbeddedRecipientStartUrl("SIGN_AT_DOCUSIGN")//sends user directly to docusign
      ->setClientUserId($rand_user_id)
      ->setTabs($tabs)
      ->setRoleName("Applicant");


      //webhook config
      $envelope_events = [
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("delivered"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("completed"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("declined"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("voided"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent"),
      (new DocuSigneSignModelEnvelopeEvent())->setEnvelopeEventStatusCode("sent")
      ];

      $recipient_events = [
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Sent"),
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Delivered"),
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Completed"),
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("Declined"),
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("AuthenticationFailed"),
      (new DocuSigneSignModelRecipientEvent())->setRecipientEventStatusCode("AutoResponded")
      ];

      /*NOTE *****
      //make sure to add route url to $except in HttpMiddlewareVerifyCsrfToken*/
      $event_notification = (new DocuSigneSignModelEventNotification())
      ->setUrl(route("webhook"))//url webhook goes to
      ->setLoggingEnabled("true")
      ->setRequireAcknowledgment("true")
      ->setUseSoapInterface("false")
      ->setIncludeCertificateWithSoap("false")
      ->setSignMessageWithX509Cert("false")
      ->setIncludeDocuments("true")
      ->setIncludeEnvelopeVoidReason("true")
      ->setIncludeTimeZone("true")
      ->setIncludeSenderAccountAsCustomField("true")
      ->setIncludeDocumentFields("true")
      ->setIncludeCertificateOfCompletion("true")
      ->setEnvelopeEvents($envelope_events)
      ->setRecipientEvents($recipient_events);
      //end webhook config







      // instantiate a new envelope object and configure settings
      $envelop_definition = (new DocuSigneSignModelEnvelopeDefinition())
      ->setEmailSubject("Docusign Test")
      ->setTemplateId($template_id)
      ->setTemplateRoles(array($templateRole))
      //->setRecipients($recipients)
      ->setEventNotification($event_notification)
      ->setStatus("sent");// set envelope status to "sent" to immediately send the signature request


      // optional envelope parameters
      $options = (new DocuSigneSignApiEnvelopesApiCreateEnvelopeOptions())
      ->setCdseMode(null)
      ->setMergeRolesOnDraft(null);

      // create and send the envelope (aka signature request)
      $envelopeApi = new DocuSigneSignApiEnvelopesApi($this->api_client);

      $envelop_summary = $envelopeApi->createEnvelope($this->account_id, $envelop_definition, $options);
      if(!empty($envelop_summary)){

      $envelop_summary = json_decode($envelop_summary,true);


      $recipient_view_request = ( new DocuSigneSignModelRecipientViewRequest() )
      ->setReturnUrl( route("return_url_for_document") )
      ->setClientUserId($rand_user_id)
      ->setAuthenticationMethod("email")
      ->setUserName($name)
      ->setEmail($email);

      try{
      $signing_view = $envelopeApi->createRecipientView($this->account_id, $envelop_summary["envelopeId"], $recipient_view_request);

      $signing_url = $signing_view->getUrl();
      $envelop_summary["signing_url"] = $signing_url;

      return $envelop_summary;

      } catch (DocuSigneSignApiException $e){
      echo "Error connecting Docusign : " . $e->getResponseBody()->errorCode . " " . $e->getResponseBody()->message;
      }
      }






      laravel laravel-5 laravel-5.4 docusignapi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 2 at 18:01









      altoidsaltoids

      3273727




      3273727
























          1 Answer
          1






          active

          oldest

          votes


















          1















          My question is how do I redirect them back to my site if they clicked on the email instead of landing on the document directly from my site?




          Use the embeddedRecipientStartURL. To enable your application to understand the context, use the merge field capability as noted in the documentation:




          Information can be appended to the embedded recipient start URL using merge fields. The available merge fields items are: envelopeId, recipientId, recipientName, recipientEmail, and customFields.




          Eg, use embeddedRecipientStartURLvalue of https:myapp.mydomain.com/?envelopeId=[[envelopeId]]&recipientId=[[recipientId]]&recipientName=[[recipientName]]& recipientEmail=[[recipientEmail]]






          share|improve this answer
























          • How do i get the envelope id to append to embeddedRecipientStartURL ? It's a catch 22. I need to create the envelope to get the envelope id.

            – altoids
            Jan 8 at 4:49






          • 1





            The [[envelopeId]] will be replaced with the envelope id. Sorry this wasn't clear.

            – Larry K
            Jan 9 at 1:18












          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',
          autoActivateHeartbeat: false,
          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%2f54011053%2fdocusign-how-do-i-redirect-a-user-after-remote-signing-email-to-my-site-using%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1















          My question is how do I redirect them back to my site if they clicked on the email instead of landing on the document directly from my site?




          Use the embeddedRecipientStartURL. To enable your application to understand the context, use the merge field capability as noted in the documentation:




          Information can be appended to the embedded recipient start URL using merge fields. The available merge fields items are: envelopeId, recipientId, recipientName, recipientEmail, and customFields.




          Eg, use embeddedRecipientStartURLvalue of https:myapp.mydomain.com/?envelopeId=[[envelopeId]]&recipientId=[[recipientId]]&recipientName=[[recipientName]]& recipientEmail=[[recipientEmail]]






          share|improve this answer
























          • How do i get the envelope id to append to embeddedRecipientStartURL ? It's a catch 22. I need to create the envelope to get the envelope id.

            – altoids
            Jan 8 at 4:49






          • 1





            The [[envelopeId]] will be replaced with the envelope id. Sorry this wasn't clear.

            – Larry K
            Jan 9 at 1:18
















          1















          My question is how do I redirect them back to my site if they clicked on the email instead of landing on the document directly from my site?




          Use the embeddedRecipientStartURL. To enable your application to understand the context, use the merge field capability as noted in the documentation:




          Information can be appended to the embedded recipient start URL using merge fields. The available merge fields items are: envelopeId, recipientId, recipientName, recipientEmail, and customFields.




          Eg, use embeddedRecipientStartURLvalue of https:myapp.mydomain.com/?envelopeId=[[envelopeId]]&recipientId=[[recipientId]]&recipientName=[[recipientName]]& recipientEmail=[[recipientEmail]]






          share|improve this answer
























          • How do i get the envelope id to append to embeddedRecipientStartURL ? It's a catch 22. I need to create the envelope to get the envelope id.

            – altoids
            Jan 8 at 4:49






          • 1





            The [[envelopeId]] will be replaced with the envelope id. Sorry this wasn't clear.

            – Larry K
            Jan 9 at 1:18














          1












          1








          1








          My question is how do I redirect them back to my site if they clicked on the email instead of landing on the document directly from my site?




          Use the embeddedRecipientStartURL. To enable your application to understand the context, use the merge field capability as noted in the documentation:




          Information can be appended to the embedded recipient start URL using merge fields. The available merge fields items are: envelopeId, recipientId, recipientName, recipientEmail, and customFields.




          Eg, use embeddedRecipientStartURLvalue of https:myapp.mydomain.com/?envelopeId=[[envelopeId]]&recipientId=[[recipientId]]&recipientName=[[recipientName]]& recipientEmail=[[recipientEmail]]






          share|improve this answer














          My question is how do I redirect them back to my site if they clicked on the email instead of landing on the document directly from my site?




          Use the embeddedRecipientStartURL. To enable your application to understand the context, use the merge field capability as noted in the documentation:




          Information can be appended to the embedded recipient start URL using merge fields. The available merge fields items are: envelopeId, recipientId, recipientName, recipientEmail, and customFields.




          Eg, use embeddedRecipientStartURLvalue of https:myapp.mydomain.com/?envelopeId=[[envelopeId]]&recipientId=[[recipientId]]&recipientName=[[recipientName]]& recipientEmail=[[recipientEmail]]







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 3 at 12:25









          Larry KLarry K

          34.3k1174102




          34.3k1174102













          • How do i get the envelope id to append to embeddedRecipientStartURL ? It's a catch 22. I need to create the envelope to get the envelope id.

            – altoids
            Jan 8 at 4:49






          • 1





            The [[envelopeId]] will be replaced with the envelope id. Sorry this wasn't clear.

            – Larry K
            Jan 9 at 1:18



















          • How do i get the envelope id to append to embeddedRecipientStartURL ? It's a catch 22. I need to create the envelope to get the envelope id.

            – altoids
            Jan 8 at 4:49






          • 1





            The [[envelopeId]] will be replaced with the envelope id. Sorry this wasn't clear.

            – Larry K
            Jan 9 at 1:18

















          How do i get the envelope id to append to embeddedRecipientStartURL ? It's a catch 22. I need to create the envelope to get the envelope id.

          – altoids
          Jan 8 at 4:49





          How do i get the envelope id to append to embeddedRecipientStartURL ? It's a catch 22. I need to create the envelope to get the envelope id.

          – altoids
          Jan 8 at 4:49




          1




          1





          The [[envelopeId]] will be replaced with the envelope id. Sorry this wasn't clear.

          – Larry K
          Jan 9 at 1:18





          The [[envelopeId]] will be replaced with the envelope id. Sorry this wasn't clear.

          – Larry K
          Jan 9 at 1:18




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54011053%2fdocusign-how-do-i-redirect-a-user-after-remote-signing-email-to-my-site-using%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith