Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

Sales Engineering Quick Guide on how to configure the Docusign connectors for e-signature POCs.

Valid for PM Connectors as available on Enterprise editions 3.1.x through 3.3.x

Instructions


On Docusign

URL.- https://appdemo.docusign.com/home

Admin Configuration

A. Create and configure an OAth application from inside DocuSign developers console.

  1. Login to your Docusign developer account. (https://account-d.docusign.com/)
  2. On the top menu go to Settings, then in the sub menu go to Integration → API and Keys.
  3. Click on  Add APP / Integrator Key. (Note: If a key already exists, you may be able to use it). Name it ProcessMaker.
  4. Copy the Integration Key for later
  5. Choose Authorization  Code Grant
  6. Add a Secret Key, copy the Secret Key for later
  7. Add a redirect URI like: https://your.processmaker.server/docusign/authorization
  8. Save the application

B. Configure DocuSign in ProcessMaker

  1. Go to Admin menu
  2. Click on  DocuSign Configuration sub menu
  3. Paste the previously copied Integration Key
  4. Paste the previously copied Secret Key
  5. Save the configuration

C. Grant Access Code from Admin menu (Optional)

  1. From DocuSign Configuration click on GRAN DOCUSIGN ACCESS
  2. Click on Authorize access
  3. Login with you docusign accound (the owner of your docusign documents and templates)
  4. Done

Template Configuration

You could use any template you have in DocuSign or create a new one. To create a new template follow the following steps:

  1. From your DocuSign account go to Templates
  2. Create a New Template
  3. Set the name an a brief description
  4. Upload a document to be signed
  5. Setup the recipients
  6. Save and exit

 


Connector Use

  1. Design a Process with a form task that captures necessary Recipient information (name, email).  
  2. The request will be expecting a Body with the following JSON structure:
    1. {

      "status" :"sent",

      "emailSubject" :@@Subject,

      "templateId" :@@Template,

      "templateRoles":@=SignersList

      }
  3. You'll need thus to create these variables prior to calling the connector. 
    1. emailSubject can be either hard-coded or read from a variable. It is a plain text field.
    2. templateId is the ID for the template you will request signing. It can be hard-coded or read from a variable.
    3. templateRoles is a JSON array with details for each Recipient. Each element in the array will follow this structure:
      1.  "roleName"=> "rolename",
        "name"=> "name"
        "email"=> "email",
        "recipientId"=> "id",
        "tabs"=> { {"textTabs" => $textTabs }
      2. Here you will replace these values with form data. See the following sample script that builds this payload:
      3. DS Script
        $tempArray=array();
        $textTabs=array();
        
        array_push($textTabs,
                   array(
                   "tabLabel"=>"txtCompany",
        			"value"=> @@companySignature
                   ));
        
        
        array_push($tempArray, 
        	  array(
              "roleName"=> "Disclosing",
              "name"=> @@signeeSelect_label,
              "email"=> @@txtCioEmail,
              "recipientId"=> strval("2")
        	  ),		   
        
        	  array(
              "roleName"=> "Receiving",
              "name"=> @@employeeFirstName,
              "email"=> @@employeeEmail,
              "recipientId"=> strval("1"),
        	  "tabs"=> array ("textTabs" => $textTabs)
        	  )
        );
        
        $json=json_encode($tempArray);
        
        #Payload:
        @@SignersList=$json;
        @@Template = "94e26f82-42cf-4689-8b49-85495e3fe773"; // id for the PM NDA 
        @@MessageEmail = "Please sign the NDA";
        @@Subject = "DocuSign: NDA available for signature";
        
        #Get User Email
        $userInfo =userInfo(@@USER_LOGGED);
        //@@txtAdvisorName = $userInfo['firstname'] . " " . $userInfo['lastname'];
        @@txtUserEmail = $userInfo['mail'];
        
        
        

Once you have these variables set, you can use the Service Task with the createSendEnvelope connector:

  • Configure Body type as JSON
  • Add the JSON object in the body, as follows:
  • {

    "status" :"sent",

    "emailSubject" :@@Subject,

    "templateId" :@@Template,

    "templateRoles":@=SignersList

    }
  •  Profit!





  • No labels