QualityOne Vaults allow users to generate related documents from an object record linked and stored in the object record’s document field. These documents are created from the formatted output and document templates that you create and maintain. Generating documents from an object record allows users to include related data associated with the object record in the generated documents. Document generation is accomplished by using the actions configured on an object record.
Supported Objects
Vault currently supports Document Generation for the following objects:
- APQR Item (
apqr_item__v
) - Audit (
audit__qdm
) - CAR (
car__v
) - Change Control (
change_control__v
) - Complaint (
complaint__v
) - Formulation (
formulation__v
) - NCR (
ncr__v
) - Packaging (
packaging__v
) - Product (
product__v
) - Risk Register (
risk_register__v
) - Risk Study (
risk_study__v
)
Configuration Overview
Configuring your Vault to use Document Generation involves the following steps:
- Create formatted output templates, document templates, and reports
- Define document configurations
- Configure the Document Generation actions
Note: Depending on your Vault’s creation date and which features are currently enabled and configured, some of the steps described in this article may be unavailable or already complete in your Vault.
Creating Templates & Reports
When configuring Document Generation actions, Vault requires you to select the template or report from which to generate documents. You must create the formatted output templates, document templates, or reports before you can configure the actions:
- To create and manage formatted output templates, see Managing Formatted Output Templates for details.
- To create and manage document templates, see Managing Document Templates for more details.
- To create reports, see Creating Reports for more details.
Defining Document Configurations
Document generation relies on using the Generate Document From Formatted Output and Generate Document From Template Output actions. You must set up the following for the Document Generation feature:
- Configure the appropriate lifecycle and workflow configurations for the document type you need to generate.
- Ensure you configure the required document fields to match the configured template field names. These actions cannot execute if there are blank required fields on the selected document type.
- Ensure your object configuration has an appropriate document reference field to set the generated document link value upon executing the actions.
When generating the document, Vault transfers field data for fields with matching names and data types from the originating object record to fields on the newly-created document based on the mapped fields configured in the template. This transfer matches field names without their namespace suffix, for example, (__c
) or (__v
). If there is more than one (1) matching field with the same name, Vault prioritizes the standard field (__v
) after matching the required field configuration first.
Configuring the Document Generation Actions
You must configure the actions available as a user action or entry action on any supported object’s lifecycle state. As document artifacts can include large amounts of data from many records, generating the document may take some time to complete. You should carefully consider where in your processes’ lifecycle state to invoke or allow these actions.
While the configured action automatically determines a document Owner, you can use DAC to grant access to other roles as necessary. We encourage planning and testing to ensure that the actions configured for generating these documents perform as expected.
You can configure the following actions on the supported object’s lifecycle:
- Generate Document from Formatted Output action
- Generate Document from Document Template action
- Generate Document from Report action
Configuring the Generate Document from Formatted Output Action
To configure the action to generate a formatted output document from a template:
- Navigate to the User Actions or Entry Actions section of the applicable object lifecycle state details page and click Edit.
- Select Always or Perform with conditions as appropriate for your process. We recommend using the Perform with conditions option to limit the availability of a given template to the appropriate object type.
- Select the Generate Document From Formatted Output action from the drop-down.
- Select a Document Type. You can choose from any document type in your Vault. During initial setup, it may be helpful to select a simple document type with few or no required fields for testing purposes.
- Select a Document Lifecycle for the document type.
- Select a Formatted Output template. You can select from any formatted output template associated with this object.
- Select a Document Reference Field. The selection is limited to outbound document reference fields available on the object. After the action executes, Vault populates this field with a link to the newly-generated document.
- In the Populate Owner From drop-down, choose either From User Field or From Team Role. See Populating the Owner for more details.
- If you chose From User Field, select a User Field.
- If you chose From Team Role, select a Team and the configured Team Role.
- Optional: For configuring a user action, select an Audit Lifecycle State to enter after initiating this action.
- Enter an Action Label.
- Click Save.
Configuring the Generate Document from Document Template Action
To configure the action to generate a document from a template:
- Navigate to the User Actions or Entry Actions section of the applicable object lifecycle state details page and click Edit.
- Select Always or Perform with conditions as appropriate for your process. We recommend using the Perform with conditions option to limit the availability of a given template to the appropriate object type.
- Select the Generate Document From Template Output action from the drop-down.
- Select a Document Type. You can choose from any document type in your Vault. During initial setup, it may be helpful to select a simple document type with few or no required fields for testing purposes.
- Select a Document Lifecycle for the document type.
- Select a Document Template. You can select from any document template associated with this document type.
- Select a Document Reference Field. The selection is limited to outbound document reference fields available on the object. After the action executes, Vault populates this field with a link to the newly-generated document.
- In the Populate Owner From drop-down, select either From User Field or From Team Role. See Populating the Owner for more details.
- If you chose From User Field, select a User Field.
- If you chose From Team Role, select a Team and the configured Team Role.
- Optional: For configuring a user action, select an Audit Lifecycle State to enter after initiating this action.
- Enter an Action Label.
- Click Save.
Configuring the Generate Document from Report Action
To configure the action to generate a document from a report:
- Navigate to the User Actions or Entry Actions section of the applicable object lifecycle state details page and click Edit.
- Select Always or Perform with conditions as appropriate for your process. We recommend using the Perform with conditions option to limit the availability of a given template to the appropriate object type.
- Select the Generate Document From Report action from the drop-down.
- Select a Document Type. You can choose from any document type in your Vault. During initial setup, it may be helpful to select a simple document type with few or no required fields for testing purposes.
- Select the Document Lifecycle for the document type.
- Select an Object Reference Field on Document. After the action executes, Vault populates this field with a link to the source record.
- Select your Report Type from the drop-down.
- Select an Available Report view from the drop-down.
- Optional: Select a Default Report. When a user performs the action, this output is the default template in the dialog.
- Select a format to export to from the Report Export Type drop-down.
- Select a Document Reference Field. The selection is limited to outbound document reference fields available on the object. After the action executes, this field is populated with a link to the new document.
- In the Populate Owner From drop-down, select either From User Field or From Team Role. See Populating the Owner for more details.
- If you chose From User Field, select a User Field.
- If you chose From Team Role, select a Team and the configured Team Role.
- Enter an Action Label.
- Click Save.
Populating the Owner
The Populate Owner From drop-down determines which user to place in the Owner role on the generated document once created. You can choose between the following options:
- The From User Field option adds a user from the selected User object reference field on the object. If you select this option, ensure you configure a User reference field on the supported object.
- The From Team Role option populates the Owner role with a Team member from the selected Team and Team Role. Ensure that you set the Maximum Users field to “1” when creating team roles as document generation only allows a single user assignment.