---
sourceDocument: Xanadu Employee Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/employee-service-management

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Edit a generated document in Agent Workspace for HR Case Management

# Edit a generated document in Agent Workspace for HR Case Management {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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 AllHR Case ManagementAgent Workspace for HR Case Management.
2. Click Lists.
3. Open an HR case that is assigned to you.
4. Click Preview Document.
5. In the Preview Document window:  
   1. Click Edit. 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.
   {#agent-edit-document-ws__ol_shb_bxs_1xb}  
   The document is saved and sent as an attachment in document tasks that are created for participants.
{#agent-edit-document-ws__steps_v11_npt_1xb}

*[\>]: and then


