SpotDraft lets you define sophisticated conditions that trigger approvals based on data within the contract. This article explains how to use the "Conditions Based on Contract Variables" feature to create complex conditions as formulas in the advanced mode.
Understanding the Advanced Conditions Builder
- Using the advanced conditions builder in SpotDraft, you can combine multiple variables and functions to create complex criteria that trigger approval requests.
- The builder supports various functions and operators, allowing for nuanced scenarios that are impossible to set with the basic condition builder.
How to Set Up Complex Conditions
- Navigate to the Workflow Manager:
- Go to the "Manage" section in SpotDraft.
- Click on "Workflow Manager."
- Select a Workflow:
- Click on the workflow for which you want to set up approvals.
- This will open the workflow details page.
- Go to Approvals Settings:
- On the workflow details page, you'll see a section on the left-hand side labeled "Additional Options."
- Click the "Approvals" button. This will open the "Approvals" section for this workflow.
- Add a New Approval:
- Click the "Add Approval" button to create a new approval step
- Click the "Add Approval" button to create a new approval step
- Configure the Approval:
- Approval Name: Give the approval a descriptive name (e.g., "Finance Approval," "Legal Approval").
- Approver: Select the individual or team responsible for approving contracts within this workflow.
- Instructions: Write clear instructions for the approver, explaining what they need to review and what actions they should take (e.g., "Please review all commercial details and payment terms before approving").
- Choose When the Approval is Required:
- Select “Conditions Based on Contract Variables” option for when this approval is required. This allows you to request approval only if the specific conditions configured based on data fields in the contract are TRUE.
- Select “Conditions Based on Contract Variables” option for when this approval is required. This allows you to request approval only if the specific conditions configured based on data fields in the contract are TRUE.
- Switch to Advanced Mode:
- Click the "Conditions Based on Contract Variables are met" radio button.
- In the "Approval Collection" section, you'll see a button labeled "Switch To Advanced Mode." Click this button.
- Write Your Conditions as Formulas:
-
You can now write your conditions using formulas within the text box.
-
The formula editor provides a list of supported functions and variables, along with autocomplete suggestions to help you write your conditions efficiently.
-
Example: As you type "Equals(department," SpotDraft will suggest relevant variables like "department," "cp_country," "deal_value", etc. Select the correct variable to complete your formula.
- For detailed information on supported functions in the formula editor, you can refer to this comprehensive article.
-
-
Pro Tip: Understanding Errors in the Formula Editor
If you encounter an error while writing your formula, SpotDraft's formula editor will highlight the problem area with a squiggly red underline. Hovering your mouse over the red underline will display a pop-up message that explains the error and provides guidance on how to fix it.
For detailed information on common errors and solutions when setting up approval conditions, you can refer to this comprehensive article.