Skip to main content
Skip table of contents

Creating a Standalone Data Collection Document

1. Create a Documill Template

The first step is creating a new template using the Template Builder. Within the template builder, click on New Template and select the Blank template.

image-20241127-090103.png

Proceed to select your main object. The main object represent the starting point of your template, this is typically the object from where the process will begin. Besides the main object, any other object data can be added to the template later on.

image-20241127-090242.png

From the Settings tab, navigate to the Workflow section and enable the Data collect external workflow.

image-20241127-090626.png

Once enabled, the Data Collection settings will become available.

image-20241127-090726.png

In the settings, most aspects of the workflow can be easily defined. Consult the settings page for detailed information regarding each setting.

image-20241127-090825.png

2. Add Form Elements

After the settings have been configured as needed, the content of the document can be created. Click on the Document tab and begin creating the document by adding content, formats and styles.

In order for the recipient to enter information, Form elements need to be added to the document. Form elements can be found in the Components section on the left-hand side of the screen.

image-20241127-094839.png

Once added to the document, the Forms can be customized further by clicking on the desired Form and accessing the Element tab on the right-hand side of the screen.

image-20241127-100024.png

image-20241127-095014.png

For each Form added to the document, various settings and conditionality can be set. A value that must be configured for each Form is the Bound Value. The bound value will be the variable name which will store the user input from your recipient, this is especially important when saving the data back to Salesforce.

Besides various attributes being configurable, Forms can also be styled as needed. Consult this article to learn more about document styling.

3. Save the Data Back to Salesforce

To ensure that data saved back to Salesforce after the document has been submitted, follow these steps to configure the workflow and add the necessary functions.

  1. Access the main flow, select step ´Custom Data´ then edit ´Load Data´ and use addMapEntry command to map dynamic field values to specific identifiers.

Main Flow Configuration

image-20241031-064618.png

  1. From the Home tab, access the ShareEnd subflows and select step ‘Share end’.

    image-20241128-072511.png

  2. Find the correct When command. For Data Collect workflows, the document status External Approved should be used.

  3. Choose update command. In the type box, enter the API Name of the Salesforce object you want to update (e.g., Opportunity or Account).

  4. Add child field commands. The first field command should contain the record ID of the Salesforce record to update. Add subsequent field commands for each field you intend to update, where name should contain the API Name of the target field in Salesforce and value is the configured input form value. For example, dynFields.fullname. There can be as many field commands as needed.

Subflow ShareEnd Configuration

image-20241128-072647.png

After clicking the Exit button post-document generation, the user's input updates the Description in Salesforce, enabling seamless real-time data transfer.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.