How to: Create a custom DocuSign search filter for the Envelope List

Use the custom DocuSign envelope list search filter to create a specific search for envelopes received, sent, drafted and deleted based on selected folders in DocuSign. By default, DocuSign only returns envelopes used in the last 30 days. To show envelopes older than 30 days, you must create a custom search filter with parameters to specify a date range. You generate the custom search filter using the DocuSign Envelope SmartObject list method which, as configured here, returns envelope activity for a specific time period.

The DocuSign service type allows the product to integrate with DocuSign. For more information on how to enable this integration see DocuSign Feature Activation.

This example assumes that you are familiar with DocuSign.

Runtime example of the custom DocuSign Search Filter


You want to create a custom search filter to find envelopes created, sent, deleted and drafted in a specific date range.


In this scenario, you begin by creating a new list view and add some fields and a table to it.

Next you add controls to the view and use them as search fields on the list view. Then you add a Drop-Down List control and configure it to use a SmartObject as a data source. From the list view you edit the Initialize rule to populate the list control with data. Next step you add a Search button control to the view and configure it.

Finally, you generate a form and run it and perform a search on the DocuSign folders.

Setup Steps

The following steps set up the scenario from start to finish.

  1. Create a new category to contain a form and view, and then create a list view and form.
    1. From the Designer, locate and select the All Items folder. Right click and select New Category.
    2. Name this category DocuSign Management and click OK.
    3. Locate the Envelope SmartObject within the DocuSign category. Select Envelope and click the Design a new View option.
    4. On the General tab, name the view Envelope Search and ensure that you select the DocuSign Management category. Select the List View view type and uncheck the Call this method when the form loads check box. Click Create.
    5. On the Layout tab, click Create Labels and Controls.
    6. On the Create Labels and Controls page, select the following fields:
      • Email Subject
      • Status Changed On
      • Created On
      • Completed On
      • Owner Name
      • Sent On
    7. Click OK.
    8. Drag a Table control onto the canvas. The control is available in the Layout section of the Toolbox.
    9. On the Insert Table page, change the Columns and Rows to 5 (five). Click OK.
    10. The table is added to the view.
  2. Add controls to the list view to capture search input.
    1. Drag a Label control onto the canvas. The control is available in the Display section of the Toolbox. Change the label name to lblFolder (in the Name field) and Folder (in the Text field).
    2. Drag a Drop-Down List control onto the canvas. The control is available in the Input section of the Toolbox. Change the Drop-Down List control name to ddlFolder (in the Name field).
    3. Drag two Label and two Calendar controls onto the canvas.
    4. Change the label controls as follows:
      • Name - lblFromDate
      • Text - From Date
      • Name - lblToDate
      • Text - To Date
    5. Change the calendar controls as follows:
      • Name - clFromDate
      • Name - clToDate
    6. Drag two Label and two Text Box controls onto the canvas.
    7. Change the label controls as follows:
      • Name - lblOwnerName
      • Text - Owner Name
      • Name - lblOwnerEmail
      • Text - Owner Email
    8. Change the text box controls as follows:
      • Name - txtOwnerName
      • Name - txtOwnerEmail
    9. Drag a Label and a Text Box control onto the canvas.
    10. Change the label control as follows:
      • Name - lblSearchText
      • Name - Search text
    11. Change the text box control as follows:
      • Name - txtSearchText
    12. Select the Search Text cell and click on the Merge Cell to the Right button to create a longer field.
  3. Configure the Drop-Down List control's properties and set the data source.
    1. Select the Drop-Down list control by clicking on it. Click the ellipsis next to Type in the Data Source section of the control's properties.
    2. The Configure Data Source page shows. In the Use a SmartObject as data source section, click the SmartObject ellipsis to select the Folder SmartObject located within the DocuSign category. Click OK.
    3. Click the Display ellipsis and change the Display value to [Name]. Click OK.
  4. Add and configure rules to the list view to populate the drop-down list.
    1. Click the Rules tab. Select the View executed Initialize rule and click on Edit Rule.
    2. On the then populate ddlFolder list control with data rule, click the configure link.
    3. Ensure the Populate List Control with Data page shows as below. Click Finish.
    4. Click OK to close the Rule Designer. The Envelope Search shows as follows:
  5. Add and configure a Button control to the list view to execute the list method.
    1. Select the Layout tab of the designer. Drag a Button control onto the canvas. The control is available in the Action section of the Toolbox.
    2. Change the button control as follows:
      • Name - btnSearch
      • Text - Search
  6. Add a rule to the Button control.
    1. Select the Search button by clicking it. Select the Rules tab and then click Add Rule.
    2. Select the Actions tab. Select the Execute a method on the View. Click the select method link and select List. Next you click the configure link.
    3. On the Execute the List Method page, expand the Envelope Search in the context browser and drag the Controls > ddlFolder > Folder > ID property into the Folder ID parameter. Click Finish.
    4. Locate the following fields from the context browser and setup the rest of the input mappings as shown in the image:
      • clFromDate
      • clToDate
      • txtSearchText
      • txtOwnerEmail
      • txtOwnerName
    5. Click Finish to complete the configuration and save your changes. On the Rule Designer page, click OK.
    6. Click Finish to save and exit the view.
  7. Generate a form that contains the Envelope Search list view.
    1. Select the Envelope Search view and click Check In.
    2. With the Envelope Search view selected, click Generate a Form.
    3. On the Generate Form page, click OK.
    4. If you want to change the theme of the form to Lithium, edit the form and select Lithium in the Legacy Theme property.
  8. Run the form and test the custom search filter.
    1. Select the Envelope Search form and click Run.
    2. The Envelope Search form loads.

      The following table explains the available options:
      Search OptionExplanation
      FolderUse this drop-down to select the Folder property.
      Search TextUse this field to type additional details to refine your search.
      From Date and To DateUse the date fields to set a date parameter.
      Owner NameUse this field to specify a user within the DocuSign environment.
      Owner EmailUse this field to specify a user email within the DocuSign environment.
    3. Select and type values to build your search, and then click the Search button.

You learned how to use the custom DocuSign envelope list search filter to create a search for envelopes received, sent, drafted, and deleted in a DocuSign folder over a specific date range.