Edit a generated document
Support rendering values of variables, scripts, and blocks in edit mode in Preview Document. View the content of variables, scripts, or blocks rather than only viewing the variable or block names.
Before you begin
Role required: sn_hr_core.case_writer
Note: This feature is available only when the document is generated from a template in the Document Template plugin.
Procedure
-
Navigate to All > HR Case Management > All HR Cases > Assigned to me.
-
Open an HR case that is assigned to you.
-
Click Preview Document.
-
In the Preview Document window:
-
Click Edit Document. Except for signature tokens, all other variables, scripts and blocks are rendered with their values.
-
Add text, any valid tokens, or signature tokens.
Note: Invalid tokens will be removed while saving.
-
Click Save changes. The document is saved and sent as an attachment in document tasks that are created for participants.
-
Parent Topic:HR document generation
---
title: Edit a generated document
description: Support rendering values of variables, scripts, and blocks in edit mode in Preview Document. View the content of variables, scripts, or blocks rather than only viewing the variable or block names.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/employee-service-management/hr-service-delivery/agent-edit-document.html
release: australia
product: HR Service Delivery
classification: hr-service-delivery
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [HR document generation, Work an HR case, Use, Case and Knowledge Management, HR Service Delivery, Employee Service Management]
---
# Edit a generated document
Support rendering values of variables, scripts, and blocks in edit mode in Preview Document. View the content of variables, scripts, or blocks rather than only viewing the variable or block names.
## Before you begin
Role required: sn\_hr\_core.case\_writer
**Note:** This feature is available only when the document is generated from a template in the Document Template plugin.
## Procedure
1. Navigate to **All** > **HR Case Management** > **All HR Cases** > **Assigned to me**.
2. Open an HR case that is assigned to you.
3. Click **Preview Document**.
4. In the Preview Document window:
1. Click **Edit Document**. Except for signature tokens, all other variables, scripts and blocks are rendered with their values.
2. Add text, any valid tokens, or signature tokens.
**Note:** Invalid tokens will be removed while saving.
3. Click **Save changes**.
The document is saved and sent as an attachment in document tasks that are created for participants.
**Parent Topic:**[HR document generation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/hr-service-delivery/DocumentGeneration.md)
| title | Edit a generated document |
| description | Support rendering values of variables, scripts, and blocks in edit mode in Preview Document. View the content of variables, scripts, or blocks rather than only viewing the variable or block names. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/employee-service-management/hr-service-delivery/agent-edit-document.html |
| release | australia |
| product | HR Service Delivery |
| classification | hr-service-delivery |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | HR document generationWork an HR caseUseCase and Knowledge ManagementHR Service DeliveryEmployee Service Management |