Skip to main content
All CollectionsCPQPandaDoc CPQ
PandaDoc CPQ for Salesforce
PandaDoc CPQ for Salesforce

Automate your document workflows with PandaDoc CPQ for Salesforce. Integrate CRM data, create forms, quotes, and generate proposals.

Updated yesterday

Note: This feature is in early access.

Availability: Enterprise*

*This feature is available as a part of the paid PandaDoc CPQ add-on. If this is something you're interested in, reach out to your Customer Success Manager or sign up for a demo.

Overview

PandaDoc Workflows allow you to automate and streamline your document creation process from Salesforce. By integrating data from Salesforce and/or forms filled out by your team, you can generate customized, customer-specific proposals in just a few moments. Tailor these proposals based on contract terms or business segments effortlessly.

Example of a basic workflow:

  1. Set up your workflow. Define where your data will come from (like your Salesforce opportunity or forms filled out by your teammates), set up your quote, and configure how this data will be used to create documents.

  2. Publish the workflow. Make the workflow available for all users across your workspace to streamline proposal creation.

  3. Execution. Users create proposals from Salesforce opportunities and complete deals using the published workflow.

How to create a workflow

Select ‘Workflows’ on the left navigation panel and select +Workflow to create a new workflow and open workflow builder.

You can add an unlimited number of steps of any type via the right side panel or by selecting +Add step button on canvas.

Step types:

  1. Create form: add a questionnaire to gather the necessary data for use in subsequent steps.

  2. Create document: generate a document from a selected template using the data collected in the workflow.

  3. Create quote: insert a quote that will be included in the resulting document.

  4. Pull data from integration: connect your Salesforce account to import and use data from the integrated system.

Notes:

  • The workflow can include an unlimited number of steps of the same type. For example, to generate three documents, you would need to add three separate "Create document" steps.

  • Steps are executed sequentially, in the order they appear on the canvas. You can easily rearrange them by dragging the handle on the left to adjust the sequence as needed.

How to configure steps

Pull data from Salesforce

Note: Make sure to have your Salesforce connected in Settings > Integrations before you proceed.

Important: PandaDoc can be connected to either your production environment or your sandbox environment, but not both simultaneously.

This step allows you to connect your Salesforce account to import and use data from the opportunities.

To connect integration you would need to follow the steps:

  1. Select Pull data from integration step > Select integration.

  2. Select Connect on the Salesforce tile and click Connect in the next modal window to connect your integration account.

  3. With Salesforce, you can retrieve data from opportunities, the object is preselected by default.​

Create form

Important: Users with a Creator or eSign license cannot run workflows. Change the user’s license type to ‘Standard’ to allow them to run workflows.

Forms allow you to collect all the necessary information from users running the workflows for use in subsequent steps.

Select Add step > Create form > Create new. By default, a multiple-choice field is added to the new form. You can easily change the field type by clicking on the selector in the top right corner, removing the field using the bin icon, or adding new fields by selecting +Add field under the existing field or the ‘+’ sign between fields.

Use the following field types to build your form:

  • Contact Preset: Collect a person’s data (e.g., email, first and last names, company) and assign it as a recipient in the document.

  • Short text: Single-line text collection.

  • Long text: Multi-line text collection.

  • Date

  • Email

  • Number

  • Phone number

  • Checkboxes: Multiple options can be selected.

  • Multiple-choice: A single option can be selected.

  • Dropdown

  • Image: Serves for form customization; cannot be passed to other steps.

  • Title: Serves for form customization; cannot be passed to other steps.

Field name: Each field has its Field ID which is used to map the field values from the form to variables or roles in further steps.

Tip: We suggest changing the default field name field_n to meaningful names to differentiate the fields from each other when mapping data between steps.

Tip: You can pre-select multiple field options by selecting the vertical ellipses menu on the right of the item > Make default selection.

Create quote

Quotes are a powerful tool within PandaDoc workflows, enabling you to present your products to customers with customized terms based on predefined quote rules. This allows for a clear, interactive, and dynamic proposal that adapts to specific conditions, ensuring your offers are tailored to meet the unique needs of each client.

How to configure a quote:

  1. Select Create new.

  2. You can either leave a quote empty (to later set up data mapping and populate it from the integration or catalog when running the workflow) or pre-set it with some default products, currency, design, etc. as needed.

  3. Use quote data fields if you need to have some values passed to/from the quote step and manipulate them. Quote data fields allow you to set up quote rule conditions based on the value that will be pulled to the quote from the preceding steps or pass some data to the further workflow steps by manually adding value to them.

  4. To edit, update, and populate the quote content based on input data from the previous steps you can configure the rules for the quote in the Rules tab.

Quote data fields

Quote data fields allow you to add custom quote variables:

  • to collect some data from the previous step

  • to pass some data from the quote to further steps in the workflow

  • to have some defaults within the quote

Quote variables will help you build the rules and perform some actions to quote depending on its values.

Rule builder

Note: Rules are executed in the order they are placed in the rule builder.

To get started, select +Rule and select +Add condition.

The Rule builder allows you to configure rules using a predefined set of properties and actions. These rules can be used to perform calculations or trigger various actions in a quote, such as adding a line item from the catalog, removing an item from the quote, or updating a value in a line item or quote section like a discount.

The rule builder offers two modes for creating and managing these rules:

  1. Visual mode: This mode allows you to configure rules easily using a graphical interface with a preselected set of properties and actions.

  2. Code mode: For more complex scenarios, this mode lets you write rules from scratch in a JSON-like format, offering greater flexibility and control. You can find more details on the rule builder here.

Quote rules operate on a "when/then" logic. In the "When" section, you'll select one or more conditions that will trigger specific actions. The available text column operators include: "equal," "not equal," "empty," "not empty," "contains," "does not contain," "starts with," and "ends with." The available number column operators are: "equal," "not equal," "greater than," "less than," "greater than or equal to," "less than or equal to."

For example, quote rules can be based on quote variables, line items, or quote settings you have set up.

Note: The ‘When’ part can contain multiple conditions. For the smoothest experience, we suggest adding no more than 15 conditions per rule.

Available entities for ‘When’ part:

  • Line items - name, price, quantity, SKU, Cost, Selected, pricing method, billing frequency

  • Section

  • Quote variable

  • Quote total

  • Quote settings - currency, other recipient options

Available actions for ‘Then’ part:

  • Add to

  • Update

  • Delete

  • Delete all line items in

Create document

This step is meant to create a document from the selected template using the data collected in the workflow.

Tip: Before you proceed, we recommend opening the template you intend to use within this workflow and setting up the approval workflow if it applies to your case.

How to configure the step:

  1. Click Select template to open your template list.

  2. Choose a template that will be used to create a document.

Notes:

  • Make sure that the contact information is mapped from either a CRM or a form to the final document. Note that within workflows, you won’t be able to assign recipients manually as you would outside of workflows.

  • To insert quote into document, you would need to have a Quote builder block in it

  • All the template settings will be applied to the created document.

  • Created documents are stored in the root folder of Documents.

How to set up data mapping between steps

Data tab

Each step has a 'Data' tab to manage incoming (Workflow data tab) and outgoing (Step data tab) data. Use the dropdown to map fields between steps, ensuring data types match (e.g., text to text). For instance, map the 'Contact' field from Salesforce to a 'Client' role in the 'Create document' step.

Workflow data

Data-in dropdowns contain the data items that can be taken from the previous steps of the workflow to populate:

  • from Create form step: various form field values - text, date, contact, etc

  • from Pull data from integration step: contact, contact group, text, number, date, etc.
    Note: The available fields will be limited to those from the Opportunity object. However, fields from parent entities, such as Account.Owner.Name, can also appear. For example, if the Opportunity is linked to an Account that has an Owner, and such a variable is selected in Salesforce in PandaDoc setup settings via the "Configure Tokens" option, it will be displayed in under Step data.

  • from Create quote step: quote, quote data fields

  • from Create document step: document, contact, contact group, custom variable values, system variable values, etc.

Note: Step Pull data from integration cannot receive any data from previous steps.

Step data

The list of data items produced by step can be re-used in further steps.

  • Form fields

  • Roles or custom variables in a template

  • Quote line items or quote data fields in quote

Automatic field mapping

When the field names in your CRM or forms match the fields in PandaDoc, the system will automatically map them for you, reducing manual setup time.

  1. Go to the Data tab of your step

  2. Select Map data on the right

  3. Select a step where from you'd like to populate fields

  4. Check that fields from your CRM or form are matched correctly and select Map

Manual mapping

If the fields do not match, you can manually map them by selecting the corresponding fields.

Choose the right value from the 'Workflow Data' dropdown for the item you want to populate. For example, you can map the 'Contact' field from a Salesforce opportunity deal to a role (“Client”) name in the 'Create document' step. This will ensure that the role is automatically populated with the contact details gathered from the deal contacts.

Note: Make sure the data items you are mapping match their types, e.g. contact > contact, text > text, etc.

Mapping line items from integration to a quote

If you have custom quote columns, you can map them to Salesforce line item fields. Standard quote column mapping, however, is predefined in the Salesforce package setup, allowing the default mapping to remain unchanged in the quote.

Inserting a quote in a ‘Create document’ step

To include a quote generated within the workflow in your document, ensure that you add a quote builder block for each quote in the template used in the workflow.

Test running workflows

After adding all the steps, you can easily test the workflow before making it available to everyone on your team.

In your workflow, select the small arrow at the top right corner and select Run workflow from the dropdown menu.

Alternatively, you can test run a workflow you’ve created from the workflow list - simply hover over the workflow and select +Run workflow.

Publishing workflows

Publishing a workflow is the final step in the workflow creation process. It makes the workflow available for use by your team in Salesforce opportunity records, ensuring that all members can access and execute the workflow as needed.

Before publishing:

  1. Ensure all steps are configured correctly, including data sources, rules, and document templates.

  2. Verify that all necessary integrations are connected and functioning properly.

Select the Publish button either in the workflow builder or from the workflow list. This will validate the configured workflow and publish the workflow in the workspace for the rest of the members.

Note: If any errors are found in the workflow configuration, they will be highlighted and need to be resolved before publishing.

Running a workflow in a Salesforce opportunity

Note: Only published workflows are available in opportunities.

  1. In the opportunity, go to the PandaDoc Workflows tab and select Start workflow

  2. Name your workflow and select the workflow template you would like to run.​​

  3. Select Next to continue.

Moving through the workflow

Pull data from integration step

Note: You can only pull data from a single opportunity into one integration step.

In the Pull data from integration step, select one of your Salesforce opportunities.

Note: If you’re running a workflow from a specific opportunity, that opportunity will be automatically pre-selected. You can choose another opportunity from the dropdown if needed.

Create form step

Fill out the form fields as required by the workflow. An admin predefines these fields, so select the appropriate options and click Next when done.

Create quote step

You can update the created quote, adjust its settings, and customize data fields as needed, regardless of your account role. This ensures the quote accurately reflects the deal and client requirements.

Create document step

Customize the created document using content builder blocks and fillable fields as needed.

Depending on how the workflow is set up, you may either create or both create and send the document.

If you see an error message asking you to add missing data to the document before sending it:

  1. Select Add data to open the document in a new PandaDoc tab

  2. Review the document and add the missing items

  3. Go back to the workflow and select Sync updates to proceed with sending

Once you’ve sent the document select Next to complete the workflow.

The workflow is saved in the widget when you navigate back to the Opportunity. You can go back and finish a workflow you didn’t complete

Editing workflows

You can easily update the workflow when needed, ensuring it remains relevant and accurate as your business needs evolve.

To edit a published workflow, you’ll first need to unpublish it to prevent users from running it.

  1. Unpublish the workflow by selecting Unpublish from the workflow list or within the workflow builder.

  2. Modify or update the workflow as needed.

  3. Republish the updated workflow to apply changes.

Did this answer your question?