Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Need to generate a word document letter

Raj40
Tera Contributor

Hi,

I have a requirement where need to generate a Word format letter based on a record. We are using a custom table to record requests created by the users. The letter will kind of like a official letter template as well. Is there any out of box feature which can be used to achieve the requirement? or any word doc generator using script

Thank you

Raju

6 REPLIES 6

Muhammed Hafees
Tera Expert

To generate a Word document (.docx) in ServiceNow, the platform provides a dedicated feature called Word Document Templates. However, this functionality is not available out-of-the-box and requires installing the paid plugin:

 

Plugin: Word Document Templates (sn_doc_word)

 

This plugin enables you to upload .docx templates, insert placeholders, and automatically generate Word documents from any record.
 

Important Notes

 

  • It is a licensed plugin, so enabling it may incur additional cost depending on your ServiceNow subscription.
  • You can request a trial activation through ServiceNow Store if you want to test it before purchasing.
  • Always check the plugin’s dependencies before installation.

a6481d02-ff55-4bfe-a145-ada382801d43.png

Florisvmuijen
Tera Contributor

Hi Raju,

 

Yes, this is possible in ServiceNow. There are a few different approaches depending on what you want to generate.

 

  1. Word Document Templates plugin (sn_doc_word)
    ServiceNow provides a plugin called Word Document Templates that allows you to upload a .docx template and generate a Word document from a record. In the template you can use placeholders like ${number}, ${short_description}, etc., which are replaced with values from the record.

This works well for simple letters or standard documents. The plugin is probably not enabled by default and may require an additional license. For more complex scenarios (for example related list data, repeating sections or data from multiple tables) you usually end up doing some additional scripting or data preparation.

 

  1. Document Templates
    ServiceNow also OOB has Document Templates that generate documents from HTML templates. These are typically exported as PDF rather than Word.

  2. Document generation apps from the Store
    If the document becomes more complex (for example including related list data or loops or even PPT), some teams use document generation apps from the ServiceNow Store, such as Office Templater.

Hope this helps.