---
schema_version: "1"
id: eaccbdfd710636c507f9f48ce5e0d5211470bb102804dae55b62cf2a594f1894
title: Omnistudio Server-Side Document Generation Omniscript
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/doc_gen_foundation_server_side_document_generation_omniscript_391850.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.doc_gen_foundation_server_side_document_generation_omniscript_391850.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c79170f86fcfaa4b758305a37c17079e62594fdb69e14bba3e68203111f42cb4
description: The customizable sample fndSingleDocxServersideLwc Omniscript generates server-side documents from your Microsoft Word DOCX or Microsoft PowerPoint PPTX templates. You enter the Object ID, pick a template, select generation options, and generate the document.
products:
  - Omnistudio Document Generation
release: "264"
---
# Omnistudio Server-Side Document Generation Omniscript

The customizable sample fndSingleDocxServersideLwc Omniscript generates server-side documents from your Microsoft Word DOCX or Microsoft PowerPoint PPTX templates. You enter the Object ID, pick a template, select generation options, and generate the document.

You can use the sample fndSingleDocxServersideLwc Omniscript to test server-side document generation and explore its capabilities. Many organziations choose to customize this Omniscript to meet their needs.

Refer to these resources to plan your customizations:

- **[Step Properties for the Server-Side Omniscript](https://help.salesforce.com/s/articleView?id=ind.doc_gen_omniscript_step_properties_391910.htm&release=264.0.0&type=5)**  
    The fndSingleDocxServersideLwc Omniscript consists of steps, which run sequentially when the Omniscript is invoked. Each step has properties that determine the action the step performs. If you want to change the steps, Salesforce recommends that you either create a new version or clone a copy of this Omniscript.
- **[The JobId and the Document Generation Process Record Page](https://help.salesforce.com/s/articleView?id=ind.doc_gen_the_jobid_and_the_document_generation_process_record_page_391895.htm&release=264.0.0&type=5)**  
    If the Omniscript completed with a JobId but no document was generated, you can use the JobId to view the Document Generation Process record page and troubleshoot the problem.