DocuSign Feature Activation

The product can integrate with DocuSign through SmartObjects and workflow wizards. To enable integration between the product and DocuSign, the DocuSign Feature must be activated by registering an Instance of the feature with the DocuSign Feature Activation page. Once complete, SmartObjects are created for the DocuSign Service Instance, and workflow wizards are activated within the web-based workflow design tools. The underlying Service Type integrates with the DocuSign service, enabling you to design workflows that manage document signing steps or build SmartForms that utilize the SmartObjects to interact with DocuSign.

Theoretical and functional knowledge of DocuSign is required to use the DocuSign integration provided by the product. You may learn more about DocuSign from the DocuSign website at https://www.docusign.com/. The documentation below assumes you are familiar with DocuSign as well as SmartObjects.
The screenshots and instructions for third-party software are accurate at the time of writing. Third-party vendors may have changed or updated aspects of their systems (such as user interfaces, functionality, and security). As a result, this content may be outdated.

Prerequisites

The following prerequisites apply for DocuSign integration

  1. DocuSign Enterprise Version. Nintex K2 integration requires the DocuSign API and a DocuSign Integrator Key. When moving from development to production, the product requires all customers to obtain and register their integrator Key as part of the DocuSign broker service instance configuration. When registering a new service instance use your existing Integrator Key.
    • If you are using a different version of DocuSign, please contact DocuSign to determine whether you can use the API and obtain an Integrator Key in your version of DocuSign.)
  2. DocuSign Developer Account. This account must be created prior to integrating with DocuSign, and the Developer Account must be obtained from DocuSign – it is not provided by the product. See the following link for more information on obtaining a developer account: https://www.docusign.com/developer-center
  3. The following information will be required for using Docusign integration
    • Account ID
    • API Account ID
    • Account base URL
    • Authorization base URL
    • Client ID
    • Integration Key
    • RSA Private Key
    • REST API URL
    • Scope
    • User ID

See Docusign Apps and Keys for more information.

Required permissions

DocuSign integration requires the following permissions:

  • Allow sequential signing
  • Allow view and manage envelope rights through API
  • Allow send on behalf of other users through API

You can assign these permissions to existing permission profiles in DocuSign, or create a new permission profile in DocuSign, and assign the new permission profile to the relevant users who need to use DocuSign integration through the product.

Registering an instance of the DocuSign feature.

  1. On the Management site, select the Features node.
  2. Once the Feature page has opened, click on DocuSign and click New Instance.
  3. The Add Feature Instance page opens. Follow the How to enable DocuSign for K2 Integration steps that appear on the window. Once all the values have been entered click OK.
    • If you are using a DocuSign Demo Account use the following URL as your REST API URL: https://demo.docusign.net
    • The URL in Step 2 of the How to enable DocuSign for K2 Integration steps has changed. Use the https://admindemo.docusign.com/api-integrator-key to obtain your Demo Integrator Key.

    Static Authentication


    Select the Use the K2 Integrator Key option, however if you are using a non DocuSign production instance, you will need to provide your own DocuSign Integrator Key that is valid for your DocuSign tenancies. Regardless of the Integrator Key option selected, you will need to provide the REST API URL, Account ID, User Name and Password for your DocuSign Account. After October 4th 2022 , all non OAuth 2.0 authentication flows will be fully deprecated, it is recommended for users to use OAuth.

    OAuth


    1. You will need to provide your own DocuSign Integrator Key that is valid for your DocuSign tenancies. You will need to provide the following from your DocuSign account:

      • REST API URL
      • Account ID
      • Client ID
      • User ID
      • Scope
      • RSA Private Key

    2. To setup OAuth you need to have an application with keys setup under DocuSign’s “Apps and Keys” settings page.
      Once setup it will look similar to the image below.
    3. In the Authentication section, Authorization Code Grant must be always be selected as the product will use JWT Grant flow with a RSA private key. Inside the apps settings a private key must be generated, only the private key should be populated inside the product, not the public key. Take care to copy the entire private key for example -----BEGIN RSA PRIVATE KEY-----xxxxxxxx----- to finish -----END.
    4. These details will be used to populate the DocuSign Feature OAuth settings.
    5. The Redirect URL provided on the DocuSign feature must be added to the apps Redirect URLs.

    6. Before the Integration Key\Client ID can be used to retrieve and OAuth token, consent needs to be performed with the user that created the app by clicking on the “Perform Consent” button on the Feature window. If consent was performed without error you will see this page.
    7. if not, you’ll most likely see an error page from DocuSign example:

  4. The product will then configure feature instance by creating a Service Instance, SmartObjects and enabling the DocuSign workflow wizards.
  5. Click Done to complete the feature instance activation.

Important Considerations

  • If the DocuSign Service Instance is registered using the K2 Integrator Key option, DocuSign does not require certification. If you use your own Integrator Key provided by DocuSign when enabling the feature, certification is required. Certification allows for the Sandbox Integrator Key to be used against DocuSign’s Production Service Address. See the DocuSign article which explains this in more detail: https://www.docusign.com/developer-center/go-live/certification
  • It is highly recommended to use the DocuSign Feature Activation page to register the necessary Service Instances and other resources to enable DocuSign integration. If the Service Instance is registered using tooling other than the Features page, the DocuSign wizard category will not be added in the relevant workflow design tools.
  • If building embedded signing solutions using the DocuSign View Service Object, the Client User_ID must be specified (Recipient -> Input -> Client User ID). Embedded signing is an advanced DocuSign function and is not part of the DocuSign Wizards, and must be built using custom SmartObjects and smartforms. See the DocuSign Post Recipient, Post Sender, and Post Edit Help Topics for more.
  • When registering multiple DocuSign Feature Instances with different user credentials, DocuSign Templates will not be available across all service instances (in other words, Service Instance A will be unable to see Service Instances B's templates). To rectify this, Template Sharing is required. To enable Template Sharing in DocuSign, log in to the DocuSign site, click on the Manage tab > My Templates > Actions > Share. In the Template Sharing window, select the appropriate User(s)/Group(s) you want to share templates with, and then click Save
  • The input property added for the load method of the Document SMO is the Escape Non ASCII Filenames which is a Boolean value that can be set to either true or false to ensure file names get encoded correctly. When you set the Escape Non ASCII Filenames to true then non ASCII characters like भारत or Č will be encoded to their respective URL encoded values. When you set the Escape Non ASCII Filenames to false then non ASCII characters like भारत or Č will not be encoded and left as is. If no value is specified for the Escape Non ASCII Filenames parameter its default value is going to be false. This is implemented to ensure systems like SharePoint will be able to upload these files with the non ASCII file name characters without error.
  • After October 4th 2022 , all non OAuth 2.0 authentication flows will be fully deprecated. See OAuth Migration for more information.
  • Known issues:
    • When editing an existing OAuth/Static DocuSign Feature Instance via Management and entering an incorrect UserID, the instance will be updated but will present an error when an execution is attempted to DocuSign which requires the UserID. Error message states:

      Error: SmartObject Server Exception: {"error":"invalid_request"}.
      When attempting to create a new OAuth DocuSign Feature Instance using an incorrect UserID the same error will be presented on the DocuSign Service Broker configuration Step.

    • When you create a new OAuth DocuSign Feature Instance and the OAuth section details (ClientID, UserID, Authentication Service Url, Scope, RSA Private key) are all correct but REST API URL or the AccountID is incorrect, clicking OK will take you to the Feature Instance configuration screen and fail with a validation message stating that the REST API URL or the AccountID are incorrect. When you correct the REST API URL or the AccountID value but you add the incorrect values for OAuth section and click OK, the Feature Instance configuration will succeed as the token for your OAuth DocuSign Feature Instance has already been created. Only when the token expires or is deleted will the validation for OAuth section activate again. When you edit an existing OAuth DocuSign Feature Instance where the token has not expired yet, you will also be able to add the incorrect values into the OAuth section and validation will not appear.

Feature Instances

The Feature Instances section displays all active instances that have been created in the Features node, for the Feature selected in the Features list. The Features Instances section allows a administrator to view and edit existing Feature Instances.