Workflows
Automate business processes with customizable workflow triggers and actions.
Overview
The Workflows module enables you to:
- Automate repetitive tasks
- Create approval processes
- Trigger notifications
- Update records automatically
- Schedule recurring actions
Workflow Dashboard
View all workflows at a glance:
- Active workflows
- Recent executions
- Failed runs
- Workflow statistics
Understanding Workflows
Workflow Components
Each workflow consists of:
Workflow Types
Creating Workflows
Basic Workflow Setup
- Enter workflow details:
- Name
- Description
- Category
- Active status
- Configure trigger, conditions, and actions
Triggers
Record Triggers
Activate when records change:
Record Created
- When a new record is created
Record Updated
- When an existing record is modified
- Can filter by specific field changes
Record Deleted
- When a record is removed
- Useful for cleanup tasks
Field Changed
- When a specific field value changes
- Example: Deal stage changed to "Won"
Time-Based Triggers
Scheduled
Run at specific times:
- Daily at a set time
- Weekly on specific days
- Monthly on specific dates
- Custom cron expression
Date-Based
Trigger relative to dates:
- X days before a date field
- X days after a date field
- On the date itself
Examples:
- 7 days before contract expiry
- On employee anniversary
- 1 day before leave starts
System Triggers
User Actions
- User logs in
- User created
- Password changed
- Role changed
System Events
- Signature completed
- Document generated
- Payment processed
- Leave approved
Conditions
Adding Conditions
- Select field to check
- Choose operator
- Enter comparison value
Condition Operators
Condition Groups
Combine conditions with logic:
Example:
(Department = "Sales" AND Role = "Manager")
OR
(Department = "Marketing" AND Role = "Director")
Actions
Notification Actions
Send Email
- Configure:
- Recipients (static or dynamic)
- Subject line (with placeholders)
- Email body (with placeholders)
- Attachments (optional)
Send SMS
- Configure:
- Phone number field
- Message content
- Sender name
In-App Notification
Create system notifications:
- Title and message
- Target users or roles
- Priority level
- Link to record
Record Actions
Update Record
Modify the triggering record:
- Set field values
- Increment/decrement numbers
- Append to text fields
- Clear fields
Create Record
Create new related records:
- Create a task when deal closes
- Create document when employee starts
- Create reminder for follow-up
Delete Record
Remove records (use carefully):
- Delete temporary records
- Clean up old data
Integration Actions
Webhook
Call external APIs:
- URL endpoint
- HTTP method (GET, POST, PUT)
- Headers
- Request body with data
Generate Document
Create documents from templates (see the Documents & Signatures guide):
- Select template
- Map data to placeholders
- Set output location
- Trigger signing if needed
Approval Actions
Request Approval
- Configure:
- Approvers (users or roles)
- Approval type (any or all)
- Instructions
- Timeout period
- Define what happens on:
- Approve
- Reject
- Timeout
Approval Workflows
Setting Up Approvals
Creating an Approval Workflow
- Create new workflow
- Set trigger (e.g., Leave Request Created)
- Configure approval chain
Approval Types
Single Approver
- One person approves
- First response is final
Any Approver
- Multiple approvers
- First approval completes
All Approvers
- All must approve
- Any rejection stops process
Sequential
- Approvers in order
- Each must approve before next
Approval Chain
Set up multi-level approvals:
Dynamic Approvers
Assign approvers dynamically:
- Record owner's manager
- Department head
- Project manager
- Custom lookup
Managing Approvals
Approver Experience
- Receive notification
- Review request details
- Add comments (optional)
Tracking Approvals
View approval status:
- Pending approvals
- Completed approvals
- Approval history
- Time to approve metrics
Managing Workflows
Workflow Status
Testing Workflows
Test Mode
- Open workflow
- Select or create test data
- Run simulation
- View expected results
Dry Run
Execute without making changes:
- See what would happen
- Verify conditions
- Check action output
Execution History
Viewing History
- Open workflow
- See all executions:
- Trigger time
- Status (success/failed)
- Records affected
- Actions performed
Troubleshooting
For failed executions:
- Open the execution
- View step-by-step log
- See error messages
- Identify failing action
- Fix and re-run if needed
Version Control
Workflow Versions
- Each save creates a version
- View previous versions
- Compare changes
- Restore old versions
Cloning Workflows
- Open workflow
- Modify as needed
- Save as new workflow
Common Workflow Examples
Onboarding Workflow
Trigger: Employee start date - 7 days Actions:- Create onboarding checklist task
- Send welcome email to employee
- Notify IT to prepare equipment
- Notify manager with checklist
- Schedule orientation meeting
Leave Approval
Trigger: Leave request created Conditions: Status = Pending Actions:- Request approval from manager
- On approve:
- Update status to Approved
- Notify employee
- Update calendar
- On reject:
- Update status to Rejected
- Notify employee with reason
Deal Won Celebration
Trigger: Deal stage changed Conditions: New stage = Won Actions:- Send congratulations to sales rep
- Notify finance team
- Create onboarding project
- Generate contract document
- Schedule kickoff meeting
Contract Expiry Reminder
Trigger: 30 days before contract end date Actions:- Send reminder to account manager
- Create renewal task
- Notify customer success team
Document Signature Complete
Trigger: All signatures collected Actions:- Update document status to Complete
- Move deal to next stage
- Send copy to all signers
- Notify internal team
- Create follow-up task
Best Practices
Workflow Design
- Keep workflows focused on one process
- Use clear, descriptive names
- Add descriptions for future reference
- Start simple, add complexity later
Performance
- Minimize actions per workflow
- Use conditions to filter early
- Avoid recursive triggers
- Monitor execution times
Maintenance
- Review workflows quarterly
- Deactivate unused workflows
- Document complex logic
- Test after system updates
Tips
- Use test mode before activating
- Set up error notifications
- Keep approval chains short
- Use templates for common patterns
- Monitor failed executions daily
