encrypted field value does not show in html document template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2025 02:50 AM
Hi All,
facing one issue:
we have encrypted field in HR total rewards case ..that is salary field , we are generating employment document using document templates and used salary field to show salary in document using ${annual_slaary} but always salary information shows blank when document generated.
salary field encrypted using field encryption
How to resolve this.
Thanks,
Svani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago - last edited a week ago
Hello @svani ,
For encrypted fields, you generally can't directly embed them in a standard background-generated document; you need a mechanism (like a flow, script, or web service) to decrypt the data first and then use that decrypted value in the.
You can follow the approach
-
If the salary field is received from a third-party source, store it in an encrypted format within the form data. Then, implement a script to decrypt it when needed.
-
Restrict access so that only specific users can view the decrypted salary value.
-
When generating documents, use the decrypted salary field.
If my response helped you, please click on accepted the solution and consider giving it a thumbs-up
Thanks & Regards ,
Supriya Waghmode |ServiceNow Community Rising Star 2025🌟
