OBLYTECH Logo
OBLYTECH Logo

HR Document Templates and E-Signature in ServiceNow

HR document templates let you generate letters, agreements and forms from table data, then route them for signature inside an HR case. ServiceNow offers three routes: an HTML template written in the browser, a PDF template mapped to table fields, and a PDF template tied to a DocuSign or Adobe Sign template.

Choosing a template type before you build

Template type Best suited to Signing route Where values come from
HTML document template Letters written in the browser ServiceNow signing Variables in the body
PDF document template An existing fillable PDF in Managed Documents Inline or mapped signature fields Fields mapped to the table
DocuSign PDF template An agreement built in DocuSign DocuSign Mapped signature and text fields
Adobe Sign PDF template An agreement built in Adobe Sign Adobe Sign Manually mapped fields

The base system includes example HTML letters for employment verification in Canada and the USA, an offer letter template and an education agreement, plus a Non-Disclosure Agreement PDF template.

HR Document Templates is no longer available for new activation, and Document Templates replaces it. The steps below describe the Yokohama screens; the final section covers the replacement.

Configuring an HTML document template

The required roles are sn_hr_core.manager and sn_hr_le.admin. Go to All > HR Administration > Document Templates, click New and choose Document Template.

The form holds these key fields: Name; Table, which sets the variables you can use and lists tables you can access; Document type; HR criteria, which sets the audience rule; Body; Header and footer images with their positions; Footer text; and Page size, where A4 is 210 by 297 millimeters.

Header and footer images can be JPEG, JPEG2000, GIF, PNG, BMP, WMF, TIFF or JBIG2. Keep the header image no more than 50 pixels high and the footer logo no more than 15 pixels high.

Placing variables and date offsets

The body uses the TinyMCE editor. Place the cursor where a value belongs and click the variable in the Fields list. Date variables accept offsets written as a plus or minus sign, a number and d (days), w (weeks) or m (months). A letter can say an offer is valid until five days after a set date. The Insert Date and Insert Signature buttons place these variables, and each can be used several times.

Alignment needs care. Style tags for left or right alignment are not supported, so indent with spaces. Jelly and CSS styling are not supported either.

What the PDF generator drops

The editor offers more formatting than the PDF generator reproduces. Vertical alignment, page breaks, custom spacing between blocks, custom table column widths, column alignment and borders, inline styling and background images are not supported.

Test by impersonating an employee and submitting the catalog item, or by impersonating the case assignee and generating the letter inside the HR case.

Building a PDF template from a fillable form

PDF templates start in Managed Documents. The file must be published as a document revision before a template can use it, and the user group and document owner decide which revisions are visible.

Complete the Name, Table, Document type, Active, Document revision and HR criteria fields, then save. Use Mark Signatures to define signature blocks. Click the Parse PDF link under Related Links. The fillable PDF decides which fields can be mapped, and the selected table decides what fills them. Map each PDF field to a table field in PDF Template Mappings, check the PDF Preview, then click Update.

Its fields exist for mapping.

Connecting a DocuSign template

Create the template in DocuSign, then synchronize accounts from DocuSign > Accounts using Get Accounts. Each DocuSign template holds one document; multiple documents per template are not supported. The required role is sn_hr_core.admin.

  1. Create or open a PDF document template and set Template type to DocuSign Template.
  2. Select the DocuSign template and save from the form header.
  3. Click Get Template Fields. When the status reads Completed, reload the form. Safari users must reload to see the change.
  4. In PDF Template Mappings, map each signature field to a user field in a table.
  5. Optionally map text fields to table fields to pre-fill them. Data types must match.
  6. Click Update.

Parallel or serial signing is configured inside DocuSign. Initial, Date signed, Payment item, Formula, Attachment, Note, Approve and Decline fields cannot be mapped. If signature or document fields change in DocuSign, run Get Template Fields again; existing mappings are kept.

Sending a one-off document

For an ad hoc document, use a PDF template with Template type set to HR PDF Templates and add signers with Mark Signatures.

Connecting an Adobe Sign template

Create the template in Adobe Sign and synchronize it with ServiceNow. Each template holds one document, and pre-filled Adobe Sign templates are not supported.

Adobe Sign fields are mapped by hand, using these columns:

Column What to enter
Field name The Adobe Sign field name; signers are named Participant1, Participant2 and so on
Document field type Signature, Text or check box
Mapping table and field The HR table and the field whose value appears
Signing order Lower for the first signer; left empty for parallel signing
Active Turns the mapping on or off

Field mappings are case sensitive, so match the Adobe Sign name exactly.

Narrowing documents with document types

Document types limit which documents an HR service offers. They help when you keep several versions of one letter.

Add the document type to each template, add it to an HR case template, attach that case template to the HR service and add HR criteria to the service. When a case is created, the case template checks the type. One matching document with no criteria is placed on the form. If criteria exist, the subject person must match them. If several documents match, the form stays empty and lists them in the Document type list.

Criteria works at two levels. On an HR service it narrows which services an employee can request, such as a 401(k) service for US employees. On a document template it narrows which employees a letter is written for.

Adding a signature acknowledgment

An acknowledgment is a check box with text that records what a signature means, such as review, approval, responsibility or authorship. Add it in one of three places, and each has a different reach:

Where you add it How often it appears
An HR task on an existing case One time, for that task
An HR task template, using the Acknowledgment document and text fields Each time the HR service is requested
An HR document template, using its Acknowledgment text field Each time the document is attached to a case

Signing in Agent Workspace

The required role is sn_hr_core.case_writer. Open All > HR Case Management > Agent Workspace for HR Case Management, then open the case and confirm its state reads Work in Progress. Select Sign Document, preview the document, then choose Type signature or Draw signature. Select Generate. The signed document appears under Attachments in the side panel, and Employee Document Management can hold it afterwards.

Before signing, select the HR document template in the case form’s PDF Template field, then assign the case.

Moving to Document Templates

Document Templates replaces HR Document Templates.

Area HR Document Templates Document Templates
Template table HR Document Template Document Template
Categorizing Document Type Category
Audience rule HR Criteria User Criteria
Participants Not supported; user fields are mapped directly Supported

Document Templates also supports translation, blocks, scripts and a table of contents, which the HR version lacks. Templates must be created inside ServiceNow; a template built in DocuSign or AdobeSign cannot be used there.

To convert an HTML template, go to Document Template > HTML template, click New and copy the name, table, category, body and language. Remove the old signature token, select the matching user criteria, create a participant for each signer and click Insert signature. Publish, then update the case template.

To convert a PDF template, go to Document Template > PDF template, set Attachment type to Select from document revision, add the revision, choose the signing type and click Parse PDF. Create a Sign participant for each signer when the legacy template maps a signature field, then publish and update the case template. To migrate DocuSign or Adobe Sign files, download them, convert them to fillable forms and upload them again.

The Credential, E-Signature and Sign Document HR task types are no longer available for new activation, and the Migrate HR e-signature tasks job moves them to the E-signature task type. The Migrate HR E-Signature Tasks scheduled job, run with Execute Now, moves task templates and open tasks onto the E-signature type. Credential becomes a managed document with a credential signature, E-Signature a managed document with a signature, and Sign Document an HR document template with a signature.

Frequently asked questions

Can one HR service offer both an HTML template and a PDF template?

Yes, both can share a document type.

What if the DocuSign template has no mappable fields yet?

Synchronize accounts so the template is in ServiceNow, then click Get Template Fields and reload once the status reads Completed.

Which release should new HR document templates target?

Use Document Templates, because HR Document Templates is no longer available for new activation.