Send a relocation agreement from a ServiceNow request and file it back

When a manager submits a relocation request in ServiceNow, a flow action sends the request's details to the Workflow Builder API, and the workflow fills the relocation agreement and sends it to the employee, then to HR. Once both have signed, a web request calls ServiceNow back, and ServiceNow checks the envelope with Docusign, marks the agreement signed and attaches the signed PDF to the request.

Your service platform
Free download: the workflow file to import, the relocation agreement template and the field map
› Read the transcript

Northwind Robotics is moving Maya Chen from Chicago to Austin. Relocation requests live in ServiceNow, so that is where this one starts.

Her manager, Marcus, picks Maya, then fills in her position, both offices and her start date in Austin.

The relocation package is eighteen thousand five hundred dollars, and Mara Lindqvist is the HR business partner.

He orders it and checks out.

That is all Marcus does. A ServiceNow flow takes the request from here and starts the Docusign workflow.

In ServiceNow, this flow runs when a relocation request is submitted.

Its one step, Start Docusign workflow, is the part we built. It sends the request's details to Docusign. On a licensed ServiceNow instance, the ServiceNow app from Docusign offers the same start.

On the request, the agreement status is now Sent for signature, and the work notes record the Docusign workflow that started.

In Docusign, the workflow starts from an API call with the request's details, fills the relocation agreement, and sends it to Maya, then to HR.

Its last step calls ServiceNow back with the result.

Maya gets her relocation agreement by email.

It is one page, already filled in from the ServiceNow request: her position, both offices, her start date, and the package.

Maya signs, and finishes.

Then Mara, in HR, gets it to countersign.

Maya's signature is already on it. Mara signs, and finishes.

Back in ServiceNow, the request shows the agreement as signed, with the Docusign envelope ID.

The signed copy is attached to the request. Before ServiceNow files anything, it checks the envelope with Docusign itself.

There are three ways to start this workflow. The first is the one you just saw: a request submitted in ServiceNow.

The second is the Docusign WorkflowLauncher, a browser extension from Fluidlabs. Open it next to a ServiceNow request, search for the relocation workflow, and pick it.

Each input takes a value from the page: the request number and ID, both offices, the start date and the package.

You fill in the rest and launch it, without leaving ServiceNow.

The third way, a webhook through Baton, will start this workflow straight from ServiceNow's events. A Baton source for ServiceNow is coming.

Starts
From a ServiceNow flow, an API call or by hand
Steps
3
Document
Relocation agreement, 1 page
Signers
The employee, then the HR business partner
Last test run
28 November 2026
Workflow Builder canvas: Start Workflow from an API call, Prepare eSignature Template, Send Documents for Signature to the employee and the HR business partner, then File the Result in ServiceNow.
Captured in Docusign Workflow Builder with sample records.View full size

What it does

  1. Start: Start WorkflowFrom an API call: the Start Docusign workflow action in a ServiceNow flow, the Docusign WorkflowLauncher, or Run Workflow by hand. Inputs: requestNumber, requestSysId, employeeName, employeeEmail, jobTitle, fromLocation, toLocation, moveDate, hrName, hrEmail, packageAmount.
  2. 1
    Prepare eSignature TemplateThe relocation agreement, with its seven data labels filled from the start inputs.
  3. 2
    Send Documents for SignatureRemote signing: to the employee first, then the HR business partner named on the request.
  4. 3
    File the Result in ServiceNowMake a Web Request: a POST to the scripted REST endpoint with requestSysId, the envelope ID and the document name. ServiceNow reads the envelope from Docusign, then sets Agreement status to Signed, stores the envelope ID and attaches the signed PDF to the request. Not in the .zip: you add this step after the import, with your own connection.

Field map

Where each data label on the relocation agreement is filled from in ServiceNow
Data label on the relocation agreementServiceNow fieldStep
Employee_NameStart input employeeNameStart
Job_TitleStart input jobTitleStart
From_LocationStart input fromLocationStart
To_LocationStart input toLocationStart
Start_DateStart input moveDate, the date written out by ServiceNowStart
Case_NumberStart input requestNumberStart
Package_AmountStart input packageAmount, formatted as US dollars by ServiceNowStart

Written back: Agreement status = Sent for signature when the workflow starts, Signed once both have signed; Docusign envelope ID = The signed envelope

Filed to: Requested item / {requestSysId} / Attachments / Signed Relocation Agreement {requestNumber}.pdf

Page preview of the sample relocation agreement, with its data label fields highlighted and filled with sample values.
Northwind Robotics is a fictional company. This is a demonstration document. Sample document for workflow testing. Have counsel review before use.
The document

A relocation agreement that fills itself

The highlighted fields are the relocation agreement's data labels, shown here with sample values. The field map lists where each one comes from in ServiceNow or the start inputs. Each field sits on a hidden anchor tag, so you can use your own relocation agreement: keep the seven data labels and the workflow keeps working.

Set it up

  1. Connect ServiceNow to Docusign

    In ServiceNow, add an OAuth provider entry in System OAuth, Application Registry, for a Docusign integration key, and a REST message named for the Workflow Builder trigger API that uses it. Get a token for the REST message once, as an admin.

  2. Add the start

    Add a Flow Designer action that posts the requested item's variables to the trigger API through that REST message, and call it from the catalog item's flow. Name the catalog variables as the workflow's inputs; dates are sent written out and amounts as US dollars.

  3. Add the result endpoint

    Add a scripted REST API that only a dedicated integration user may call. It records the request's ID and the envelope ID, and a script that runs as the system reads the envelope from Docusign, sets Agreement status to Signed, stores the envelope ID and attaches the signed PDF.

  4. Import, finish and test

    In Docusign, go to Agreements, Workflows, Create Workflow, then Import Workflow, and pick the .zip. After Send Documents for Signature, add a Make a Web Request step with a Basic connection for the integration user, posting requestSysId, the envelope ID and the document name to your endpoint. Publish, then submit a test request with yourself as the employee.

On a licensed ServiceNow instance, you can take the packaged route instead: the ServiceNow app and the Docusign IAM app in ServiceNow. Docusign publishes both. More on them: ServiceNow and Docusign integrations.

Make it yours

  • Add more of the request to the agreement: the flow action sends every catalog variable under its own name, so a new data label needs a variable of the same name on the catalog item, a matching start input and a mapping in Prepare eSignature Template.
  • Change who countersigns: the HR business partner on the request is the second recipient. Point Send Documents for Signature at another start input to send it to a different approver.
  • Start it from an HR case instead of a catalog request: call the same flow action from the case's flow, and let the endpoint write to the case instead of the requested item.

Questions

Which parts are Docusign products, and which do I set up?

Docusign Workflow Builder, its trigger API and the Make a Web Request step are Docusign products. You set up the ServiceNow side with core ServiceNow features: the OAuth entry, the REST message and flow action that start the workflow, and the scripted REST endpoint that files the result. Nothing from Docusign is installed in ServiceNow. The .zip brings the workflow and the relocation agreement template; the ServiceNow pieces are described under Set it up and are not in the download.

What starts the workflow?

A ServiceNow flow, when a relocation request is submitted from the catalog. Its action posts the request's variables to the Workflow Builder trigger API, and the agreement goes out within a minute. The workflow starts from an API call, so the Docusign WorkflowLauncher, our browser extension, or Run Workflow can start it with the same inputs.

How does the signed copy get back to the request?

The last step, the Make a Web Request step you add after the import, posts the request's ID and the envelope ID to your scripted REST endpoint. ServiceNow then reads the envelope from Docusign, checks it is completed and signed by the people the request names, sets Agreement status to Signed, stores the envelope ID and attaches the signed PDF.

The import says an app linked to a workflow step is missing.

The .zip has no step from a connected app, so the import should not ask for one. The step that calls ServiceNow back is the one you add after the import, with a Basic connection for your integration user. If the message appears, check that your account has Workflow Builder and import the .zip again.

Need it to match your hiring process?

We adapt library workflows to your stages, approvals and documents, and build private apps when a system has no app yet.

Docusign is a trademark of Docusign, Inc. The ServiceNow app and the Docusign IAM app in ServiceNow are published by Docusign. To ask us to remove a mark, email hello@fluidlabs.com.