As part of a process, a Generate Document step automatically generates a document using a Mix template or a Conga Composer template, solution, or button and saves the resulting document to the process object in Salesforce. A Generate Document Step can also reference a Conga Sign-integrated Composer solution or button to generate and send a document for e-signature.

Note

In order to create a Generate Document step, a valid license to Conga Composer and/or Collaborate is required. If creating a document and sending it for e-signature, a Conga Sign license is also required.

To create a Generate Document step:

  1. Navigate to the Definition where you desire to place this step.
  2. In the Steps section of the screen, click the New Step button.
  3. Complete the fields below:
    • Step Name - Enter a name for the step.
    • Step Type - Select Generate Document.
    • Parent Step - Use Lookup to define the parent step, which is the step that must be completed before the Generate Document step is initiated.
      • Leave the field blank if the Generate Document step needs to be initiated as soon as the process starts.
    • Parent Stage - If a parent step is part of a Parent Stage, all of the steps in the stage must complete before the Generate Document step is created.
    • Stage - Use Lookup to select the Stage to associate with the Generate Document step, if applicable.
    • Application - Select Composer or Collaborate to identify the source application for the document template:
      Composer - Select Template, Solution, or Custom Button and then make a selection from the available options. See details on this option below. Collaborate - In the field, Create New Document is automatically selected as the action.
      • Define the options for the generated document:
        Output to PDF (only applicable to Composer) - Select this option to generate the document as a PDF file.
  4. Click Save.

Using Conga Composer to Generate Documents

When you choose Conga Composer as the selected Application, the options available must be from the same Object Type as the Definition to which you want to add a Generate Document Step. Document Generation will occur in background mode.

The Source picklist allows you to choose one of the following options:

  • Template - Uses the process object’s Id as the Master Object record.
  • Solution - Uses the Custom Button URL field on the selected Solution record.
  • Custom Button - Uses the configured Button URL. Only button URLs that begin with "/apex/APXTConga4__Conga_Composer" will display as options.

For Solution and Custom Button options:

  • You must pre-define a template in the Composer solution or button with the TemplateID parameter.
  • Allowed merge fields are process object and user merge fields in parameters.
  • When creating a Composer solution or button URL to use for a Generate Document step, the button URL can only contain merge fields that start with "{!User.", "{!ProcessObject." (object definition is triggered by), "{!Today()}", and "{!Now()}". Any other merge fields or formulas in the button URL are not supported at this time.
  • Template fields are also supported.
  • Embedded URL formulas are not supported.
  • A workaround is to build a formula field on the process object and include it in the URL.

When using a lookup field as the value of the OFN parameter, only the record id displays as the file name. A workaround is to use a QVar to pull in the record name.

Using Conga Composer and Conga Sign to Generate and Send Document for E-Signature

A Generate Document step that references a Conga Sign-integrated Composer solution or button generates and sends a document for e-signature with Conga Sign. Follow the same steps in the Using Conga Composer to Generate Documents section above to leverage a Conga-Sign integrated Composer solution or button.

The Composer solution or button must also contain required Conga Sign Integration parameters to successfully create and send a Conga Sign Transaction with Conga Orchestrate. A Conga Sign-integrated Composer solution or button referenced in a Create Document step functions in full background mode. Add the required parameters below to your Composer solution or button.

  • TemplateID
  • APIMode=3. If you are using V2 Composer Endpoint, set DS7=1142
  • CSRecipient
  • CSVisible = 1