---
schema_version: "1"
id: 11ad67b5ec4f2607994e4d49e6d2520137ab36fba9faf2dba4ad81a55aab3b36
title: Step Properties for the Server-Side Omniscript
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/doc_gen_omniscript_step_properties_391910.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.doc_gen_omniscript_step_properties_391910.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 19ebfa82286369014efafd4b79731cd8437f73a9b658a392acadc5df221c5649
description: 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.
products:
  - Omnistudio Document Generation
release: "264"
---
# Step Properties for the Server-Side Omniscript

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.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d6051e36">
            <p style="margin-bottom:0;">Omniscript Step</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d6051e42">
            <p style="margin-bottom:0;">Properties</p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Omniscript Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e36 ">
            <p style="margin-bottom:0;">Script Configuration</p>
          </td>

          <td data-label="Properties" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e42 ">
            <p><strong class="uicontrol">Type</strong> —
              <code>docGenerationSample</code>
            </p>
            <p style="margin-bottom:0;"><strong class="uicontrol">SubType</strong> —
              <code>fndSingleDocxServersideLwc</code>
            </p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Omniscript Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e36 ">
            <p style="margin-bottom:0;">EnterObject</p>
          </td>

          <td data-label="Properties" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e42 ">
            <p><strong class="uicontrol">ObjectId</strong> — The Salesforce Object ID, which is
              assigned to the contextID later in the <strong class="uicontrol">SetValues</strong>
              step.</p>
            <p style="margin-bottom:0;"><strong class="uicontrol">TemplateType</strong> — Either <code>Microsoft
                        Word .DOCX Template</code> or <code>Microsoft PowerPoint .PPTX
                        Template</code>.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Omniscript Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e36 ">
            <p style="margin-bottom:0;">GetDocumentTemplates</p>
          </td>

          <td data-label="Properties" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e42 ">
            <p style="margin-bottom:0;">Invokes the <code>ExtractDocumentTemplateByTemplateType</code>
              Omnistudio Data Mapper, which retrieves all active DOCX or PPTX document
              templates.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Omniscript Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e36 ">
            <p style="margin-bottom:0;">PickTemplate</p>
          </td>

          <td data-label="Properties" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e42 ">
            <p style="margin-bottom:0;">Displays the document templates in the <code>clmSelectableItems</code>
              Lightning Web Component.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Omniscript Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e36 ">
            <p style="margin-bottom:0;">GenerationOptions</p>
          </td>

          <td data-label="Properties" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e42 ">
            <p><strong class="uicontrol">ServiceFunction</strong> — The type of document generation:
              <code>Server Side Document Generation</code> (default), <code>Server Side
                  Document Generation w/ Token Data</code> (see the next step), <code>Server
                  Side PDF Generation</code>, or <code>None</code>.
            </p>
            <p id="doc_gen_omniscript_step_properties_391910__uuid-5c4888ec-c588-7713-7519-b195bf58bf64_para-idm263242750938890"><a name="doc_gen_omniscript_step_properties_391910__uuid-5c4888ec-c588-7713-7519-b195bf58bf64_para-idm263242750938890"><!-- --></a><strong class="uicontrol">OutputFileFormat</strong> — The document type of the output:
              <code>Word/PPT &amp; PDF</code> (default), <code>Word/PPT</code>,
              <code>PDF</code>, or <code>None</code>.
            </p>
            <p><strong class="uicontrol">Document
                Generation Font Source</strong> - The source of the font used for rendering
              values during document generation. Enter&nbsp;Rich Text Editor Font&nbsp;(default) to use the
              font from the Rich Text field, or&nbsp;Document Font&nbsp;to use the font from the document
              template instead (this overwrites the Rich Text field's font and applies the
              template's token font). </p>
            <p><strong class="uicontrol">DocumentTitle</strong> — An optional
              title for the generated document. Applies if <strong class="uicontrol">ServiceFunction</strong>
              is set to <code>Server Side Document Generation</code> or <code>Server Side
                  Document Generation w/ Token
                  Data</code>.</p>
            <p><strong class="uicontrol">DocumentContentVersionId</strong> The ID of a
              previously generated DOCX or PPTX document to be converted to PDF. Applies if
              <strong class="uicontrol">ServiceFunction</strong> is set to <code>Server Side PDF
                  Generation</code>.
            </p>
            <p>To list previously generated DOCX and PPTX documents,
              use the Developer Console to run a query like
              this:</p>
            <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code class="nolang">SELECT Id, Title FROM ContentVersion</code></pre>
          </td>

        </tr>
        <tr class="">
          <td data-label="Omniscript Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e36 ">
            <p style="margin-bottom:0;">SetGenerationServiceInputParams</p>
          </td>

          <td data-label="Properties" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e42 ">
            <p>Sets key-value pairs to be passed to one of the subsequent document
              generation steps. Keys are <code>selectedTemplate</code>,
              <code>templateType</code>, <code>documentTitle</code>,
              <code>docxContentVersionId</code>, <code>templateId</code>,
              <code>objectId</code>, <code>outputFileFormat</code>,
              <code>tokenDataMap</code>, <code>attachFileFormat</code>,
              <code>downloadFileFormat</code>, and <code>contextId</code>.
            </p>
            <p style="margin-bottom:0;">If
              the <strong class="uicontrol">ServiceFunction</strong> in the previous step is set to
              <code>Server Side Document Generation w/ Token Data</code>, the
              <code>tokenDataMap</code> is used instead of the Data Mapper associated with
              the template. This key lets you test document generation with sample
              data.
            </p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Omniscript Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e36 ">
            <p style="margin-bottom:0;">ServerSideDocGeneration</p>
          </td>

          <td data-label="Properties" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e42 ">
            <p>Performs document generation if <strong class="uicontrol">ServiceFunction</strong> is
              set to <code>Server Side Document Generation</code>. Invokes the
              DocumentServiceGateway_DocGeneration Integration Procedure, which invokes the
              DocumentServiceGateway Apex class.</p>
            <p style="margin-bottom:0;">When you define remote action to call a remote class, you must also specify the namespace. Remote class name format is &lt;namespace&gt;.&lt;classname&gt;, for example, omnistudio.DocumentServiceGateway.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Omniscript Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e36 ">
            <p style="margin-bottom:0;">ServerSidePdfGeneration</p>
          </td>

          <td data-label="Properties" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e42 ">
            <p>Performs document generation if <strong class="uicontrol">ServiceFunction</strong> is
              set to <code>Server Side PDF Generation</code>. Invokes the
              DocumentServiceGateway_DocGenerationPDF Integration Procedure, which invokes
              the DocumentServiceGateway Apex class.</p>
            <p style="margin-bottom:0;">When you define remote action to call a remote class, you must also specify the namespace. Remote class name format is &lt;namespace&gt;.&lt;classname&gt;, for example, omnistudio.DocumentServiceGateway.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Omniscript Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e36 ">
            <p style="margin-bottom:0;">ErrorHandling</p>
          </td>

          <td data-label="Properties" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e42 ">
            <p style="margin-bottom:0;">Displays an error message if document generation was
              unsuccessful.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Omniscript Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e36 ">
            <p style="margin-bottom:0;">ResponseMessage</p>
          </td>

          <td data-label="Properties" class="slds-cell-wrap" style="vertical-align:top;" headers="d6051e42 ">
            <p style="margin-bottom:0;">Displays a <strong class="uicontrol">JobId</strong> if the document generation job
              completed successfully.</p>
          </td>

        </tr>
      </tbody>
    </table>