Create a contract from a custom entity

Christoffer Utterborn
Christoffer Utterborn
  • Updated

This guide explains how to configure a new entity and create a contract from it. Follow the steps below to configure your custom entity and create a contract in it.

NOTE:

Before configuring a new entity, make sure you have completed the steps in the Getting started with Dynamics guide. The Opportunity entity will be automatically configured and ready for contract creation. If you want to create a contract from any other entity, you must first configure it.

Step 1. Configure a custom entity

To create contracts in a custom entity, it must first be configured.

  1. Log in to Dynamics 365 as an administrator or system customizer.

    NOTE:

    Make sure you have the Oneflow Admin role assigned to access the Oneflow settings page.

  2. In Dynamics 365, click the current app name to go to the apps page.

    Dynamics 365 App Menu

    Select Oneflow Administration.

    Select Oneflow Administration

    NOTE

    • If you use an older version of the integration (before 3.8.0.8), then Oneflow Settings appears under the main Settings menu in the Advanced settings page of the legacy UI of Dynamics 365.

      Legacy UI Settings Menu
    • If you use an older version of the integration (before 3.8.0.8) with the new Dynamics 365 UI, then Oneflow Settings appears in the side panel in the Advanced settings page of Dynamics 365.
  3. Open the Setup Entities tab. To add a new entity, click into the Select an entity search field.

    Setup Entities Tab
  4. Search for or select the entity you want to configure (e.g., Invoice/Customer Asset) and click Configure Entity. It will then be added to the list below.

    Select Entity
    Configure Entity Button

    NOTE

    You can only create contracts from customizable, non-activity entities associated with a contact or account. Only those entities will appear in the list.

  5. The entity will be added to the Oneflow list in Inactive status. To activate the entity, map the fields in the Party/Participants mapping section.

    NOTE

    You only need to map one of these fields (Party or Participants). For Account and Contact entities, mapping is not required. The system will use contacts from those entities automatically.

    Party Participant Mapping
  6. You can now activate your entity using the toggle bar.

    Activate Entity Toggle
  7. You can configure two-way sync and product sync for the entity by navigating to the Data fields and Products tabs.

    TWO-WAY SYNC

    Learn more about configuring two-way synchronization for your data and products:

  8. To create contracts from the entity you just configured, you need to add the Oneflow widget to your entity form following the instructions in Add the Oneflow widget to a custom form.

    Oneflow Widget on Form

    You should now see the widget on your custom entity record with a message indicating that configuration is incomplete.

  9. Open a record in Dynamics 365 Sales Hub and confirm that the Create contract button appears in the Oneflow widget.

    Create Contract Button

Step 2. Enable Notes and Activities for the custom entity

To send files and see participant updates in the widget, make sure Notes and Activities are enabled.

  1. Go to SettingsAdvanced Settings.

    Advanced Settings
  2. Navigate to SettingsCustomizationCustomize the system.

    Customize the System Menu
    Customization Window
  3. Under ComponentsEntities, open your entity and ensure Notes and Activities are checked under Communication & Collaboration.

    Entity Communication Settings

    NOTE

    If Notes is disabled, the Files section will be hidden. If Activities is disabled, the Contacts section will be hidden. Once enabled, these settings cannot be disabled.

Step 3. Create a contract

  1. In Dynamics 365 Sales Hub, open your custom entity record and click Create contract on the widget.

    Sales Hub Custom Entity Record
  2. If your entity isn't visible on the Dashboard, use Advanced Find.

    Advanced Find Button
  3. In Advanced Find, select your entity in Look for, click Results, and choose the desired record.

    Advanced Find Results
    Select Record
  4. Fill in contract details, select Workspace and Template, then click Create contract.
  5. NOTE

    You can choose up to 10 contacts per contract.

    Create Contract Dialog

    Once created, the contract opens in Oneflow and appears in the widget with:

    • Contract name
    • Status
    • Contacts and their statuses
    • Created/Updated dates
Contract Widget View

Click the right or left arrow at the bottom of the widget to navigate between contract cards. To create a new contract, navigate to the last card with Create contract button. It's possible to create up to 10 contracts related to one entity.

Create contracts with products

For Opportunity or Quote entities, ensure the Oneflow template contains exactly one product table.

  1. Log in to Oneflow with the same email used for Dynamics 365.
  2. Go to Templates → Create template.

    Create Oneflow Template
  3. Add a Product table block.

    Add Product Table
  4. Select the Dynamics CRM Template group and click Save template.

    Select Template Group
  5. Activate your template by clicking Publish.

    Publish Template
  6. When creating a contract in Dynamics 365, the products will automatically transfer to the Oneflow product table.

    Products in Contract

Add attachments and a PDF to the contract

Your Oneflow template must include one PDF section and one Attachment section.

Template with PDF and Attachment Sections
  1. In the Oneflow – Create contract window, click Upload or drop files in the Files section. After files are uploaded, they will appear in the Files section and be automatically selected. Uploaded files are stored in Dynamics 365 in the Timeline of the entity where you create the contract.

    Upload Files

    NOTE:

    You can upload up to 20 files, each up to 20 MB, with a total limit of 50 MB per contract.

    PDF files appear in the Files section like other files and can be downloaded in the same way.
    By default, uploaded files appear in the Attachments section of the Oneflow contract

    To add a PDF document to the PDF section in a Oneflow contract:

  2. Select the PDF file and enable Display in PDF section.

    Display in PDF Section Option

    NOTE

    Only one PDF can be marked to display in the contract’s PDF section.

  3. Select other files to attach to the contract. After creation, they will appear in the Attachment and PDF sections.

Edit contract participant data

  1. In the Oneflow – Create contract window, click the Edit icon next to a contact.

    Edit Contact Icon
  2. Update participant Role, Email, Phone, or type, then click Save.

    Update Participant Details

Add multiple emails and phone numbers to participant

You can configure up to three emails and phone numbers for participants. All mapped values appear in the dropdown list when editing a participant.

NOTE

Before adding new fields, make sure the account contains them.

  1. Go to Advanced Settings.

    Advanced Settings Menu
  2. Click SettingsOneflow Settings.

    Oneflow Settings Menu
  3. Under Get started, click Add another Phone number or Add another Email.

    Add Additional Contact Fields
  4. Select the Dynamics contact field to map.

    Map Contact Fields
  5. Click the Delete icon to remove mappings.

    NOTE

    You can remove only additional mappings; at least one email and phone number mapping must remain.

  6. Check the new fields by opening Create contractEdit participant. New values should appear in dropdowns.

    Verify Participant Fields

    NOTE

    If a field value is empty in the contact card, it will not appear in the dropdown list.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request