Blog
Home/

Wowza automates ClearCaster trial program by customizing Docusign for Salesforce

Tony Mann

Tony Mann

Director of Developer Content

Summary5 min read

See how Wowza automated contracts for its Facebook video broadcasting device by integrating Docusign eSignatures throughs its Salesforce implementation.

Wowza Media Systems is a Colorado-based company recognized as the gold standard of live streaming for their ability to reduce the complexities of live video delivery to any device. Wowza enables organizations to expand their reach and more deeply engage their audiences by providing software, hardware and services—including powerful APIs and SDKs. In 2017, the company introduced ClearCaster, a new hardware appliance designed specifically for reliable, high-quality broadcasts to Facebook Live. Wowza wanted to create excitement for ClearCaster—and get people using the device as quickly as possible—so it offered a trial program through which users could borrow a ClearCaster for 30 days after providing some basic information and agreeing to specific terms and conditions.

ClearCaster trial requests were logged in Salesforce, but the process of approving a request, creating the Docusign envelope for the official loan contract, and forwarding the request to fulfillment was largely a manual one. In addition, completed contracts were stored in Docusign, separate from the trial request in Salesforce. The company wanted to automate the way lending requests were processed, and the way that data was transmitted to and from Docusign and Salesforce.

Upstream, downstream

While Wowza had installed Docusign for Salesforce in its sandbox environment, they needed more automation for the ClearCaster evaluation program than the app provided “out-of-the-box.” Specifically, someone still had to fill out a Docusign form with the customer’s information, manually send out an email for internal review and approval of the request, and, once approved, initiate the creation of the Docusign contract for the customer to sign, acknowledging the terms and conditions for the loan of the ClearCaster appliance, including the date by which the appliance must be returned to Wowza. Once this was done, all the information then had to be re-input into Salesforce to initiate the order process.

Utilizing Docusign for Salesforce as the base, Jason Hardy, Wowza’s Senior Salesforce Developer, built a custom Salesforce Apex REST wrapper for the Docusign eSignature REST API. It automates the creation of a Docusign Envelope for the lending request from Salesforce data, routes the request for approval, and produces a Docusign document into which the customer can input their shipping and legal details while agreeing to the terms and conditions of the loan. Upon completion, the data collected by Docusign is sent back to Salesforce via Docusign for Salesforce.

Unwrapping the solution

The process starts in Docusign for Salesforce. As shown in Figure 1, a Wowza salesperson initiates the lending request by entering the customer’s information, selecting ClearCaster as the product of interest, and selecting Create Contract as shown in Figure 1.

Figure 1. Initiating the creation of the contract.

Selecting ClearCaster as the product of interest designates the Record Type for the contract in Salesforce as Hardware Loaner as shown in Figure 2. When the contract is created, it triggers Salesforce to go out to Docusign and grab the appropriate template for that record type, in this case SFDC-Hardware_Loaner (Hardware_Loaner being the API name of the record type). The salesperson can then pre-fill the address information, and that information will sync back to both Docusign and Salesforce using the merge fields functionality in Docusign for Salesforce.

Figure 2. Saving the contract.

Once the contract has been saved, it goes out for internal approval using the standard approval process in Salesforce. Jason then built a trigger in Apex that runs in the background and checks for contracts with certain record types and an approved status. As a result, once the lending request is approved in Salesforce, the trigger, which leverages Salesforce Queueable Apex, kicks off an asynchronous process to create the actual Docusign Envelope (as shown in Figure 3) and pass in key information, such as the Salesforce contract ID, the template, and the customer’s contact information. Using contract roles, Jason was able to replicate the signing roles within Docusign so that information could be synced back and forth to both Docusign and Salesforce without issue.

Figure 3. Setting up the Docusign Envelope.

While the trigger sets up the initial connection to Docusign, Jason had to build a custom REST wrapper so that the trigger could go out and get the Docusign for Salesforce credentials needed for authentication. He leveraged the Docusign for Salesforce admin guide to figure out how to format the login string and information gleaned from the Docusign eSignature REST API reference to build out the custom methods used to query all the contracts; get the record types; pass in the contract, template, contact map, and user map; and initiate the envelope definition. Once the envelope has been created, Docusign automatically routes it to customer to sign and, once signed, the final contract is stored as a record in Salesforce, as is shown in Figure 4.

Figure 4. The completed contract in Salesforce.

The lending request is then routed to Wowza’s legal team for approval. Because Docusign for Salesforce automatically synchs data back to Salesforce at each step, once the legal team approves, an order is generated and Wowza’s order fulfillment team has only to fill in a few details before sending the order to one of Wowza’s hardware manufacturing partners for fulfillment.

A broadcast of possibilities

In all, it took Jason about a week to research and build the custom REST wrapper and method calls. Wowza’s automated solution reduced the time required to process a ClearCaster lending request from an hour to about five minutes and enabled Wowza to quickly ramp up its ClearCaster evaluation program, which, at its peak, involved the lending of 10 to 15 devices per week.

Considering additional use cases from the start, Wowza is already working to extend its custom solution to its reseller and distributor agreement processes. Per Jason Hardy, “The process, once it’s in place, will probably take two minutes instead of fifteen.”

You can experience the power and flexibility of the Docusign eSignature REST API for yourself. Visit the Docusign Developer Center to create your free sandbox environment today, and don’t forget to check out our Salesforce how-to guides.

Tony Mann

Tony Mann

Director of Developer Content

More posts from this author

Related posts

  • Developers

    From the Trenches: API call defaults for reminders and expiration settings

    Byungjae Chung

    Byungjae Chung

  • Tabs deep dive: font styles

    Paige Rossi

    Paige Rossi

  • Paige Rossi

    Paige Rossi

From the Trenches: API call defaults for reminders and expiration settings

Byungjae Chung

Byungjae Chung

Tabs deep dive: font styles

Paige Rossi

Paige Rossi

Paige Rossi

Paige Rossi

Discover what's new with Docusign IAM or start with eSignature for free

Explore Docusign IAMTry eSignature for Free
Person smiling while presenting