2304 Action Rules
Action Rules: User-Triggered Automation
What are Action Rules?
Action Links vs Action Rules
Action Links
- What: Clickable buttons or links displayed in components (tables, lists, cards, etc.)
- Where: Appear as columns or buttons in data display components
- Purpose: Provide the user interface element users click
- Examples: "Approve" button, "Delete" link, "Send Email" button
Action Rules
- What: Automation attached to action links
- Where: Configured within the action link settings
- Purpose: Define what happens when the action link is clicked
- Examples: Update status, send email, create related records
Relationship: Action Links are the visible buttons; Action Rules are the automation that runs when those buttons are clicked.
When to Use Action Rules
Approval Workflows
- Purchase order approvals
- Time-off request approvals
- Document review and sign-off
- Budget approvals
Status Changes
- "Mark as Complete" for tasks
- "Ship Order" for e-commerce
- "Close Ticket" for support systems
- "Archive Record" for cleanup
On-Demand Actions
- Send email notifications
- Generate PDF documents
- Export data
- Trigger external integrations
Batch Operations
- Bulk approve multiple items
- Mass update selected records
- Batch delete or archive
Creating Action Links and Rules
Step 1: Add Action Link to Component
- Go to Page Builder
- Edit a data component (Table, List, Cards, Kanban, Calendar, etc.)
- Click the Links tab in component settings
- Click Action Link
- Configure the action link appearance:
- Title: Button text (e.g., "Approve", "Complete", "Send Email")
- Icon: Optional icon for the button
- Display Format: Button, Link, Icon Only
- Position: Left, Right, or Inline
Step 2: Configure Action Rules
- In the action link settings, click the Action Rules tab
- Click Add Action Rule
- Choose the action type
- Add conditions (optional)
- Set field values
- Configure additional options
- Save the action rule
Step 3: Test the Action
- View the page in your live app
- Click the action link on a record
- Verify the action executes correctly
- Check that records are updated as expected
- Confirm emails are sent if configured
Action Rule Types
1. Update This Record
Example 1: Approve Button
Scenario: Managers click "Approve" to approve purchase requests, updating the status and recording approval details.
Configuration:
- Action Link Title: "Approve"
- Action Rule:
- Action: Update This Record
- Conditions: Status equals "Pending Approval"
- Field Values:
- Status → Custom Value: "Approved"
- Approved Date → Current Date/Time
- Approved By → Auto Logged User
Best Practice: Add a condition to prevent re-approving already approved items.
Example 2: Complete Task
Scenario: Users click "Mark Complete" to finish tasks, updating status and completion time.
Configuration:
- Action Link Title: "Mark Complete"
- Action Rule:
- Action: Update This Record
- Conditions: Status does not equal "Completed"
- Field Values:
- Status → Custom Value: "Completed"
- Completion Date → Current Date/Time
- Completed By → Auto Logged User
2. Update Connected Records
Example 3: Close Project and Tasks
Scenario: When a project is marked complete, also mark all associated tasks as complete.
Configuration:
- Action Link Title: "Close Project"
- Action Rules (Two rules):
- Rule 1 - Update Project:
- Action: Update This Record
- Field: Status → "Completed"
- Rule 2 - Update Tasks:
- Action: Update Connected Records (Tasks)
- Conditions: Task Status does not equal "Completed"
- Field Values:
- Status → Custom Value: "Completed"
- Completion Date → Current Date/Time
- Rule 1 - Update Project:
3. Insert Connected Record
Example 4: Create Follow-Up Task
Scenario: After closing a support ticket, create a follow-up task to check customer satisfaction.
Configuration:
- Action Link Title: "Close & Create Follow-Up"
- Action Rules (Two rules):
- Rule 1 - Close Ticket:
- Action: Update This Record
- Field: Status → "Closed"
- Rule 2 - Create Follow-Up:
- Action: Insert Connected Record (Task)
- Field Values:
- Task Name → Custom Value: "Follow-up on Ticket"
- Due Date → Custom Value: 7 days from now
- Assigned To → Form Value: Original Ticket Owner
- Rule 1 - Close Ticket:
4. Insert New Record
Example 5: Log Action
Scenario: When sensitive data is exported, create an audit log entry.
Configuration:
- Action Link Title: "Export Data"
- Action Rule:
- Action: Insert New Record (Audit Log)
- Field Values:
- Action Type → Custom Value: "Data Export"
- User → Logged-in User's Name
- Timestamp → Current Date/Time
- Details → Custom Value: "Exported customer data"
5. Send Email
Example 6: Send Invitation
Scenario: Event organizers click "Send Invitation" to email registered attendees.
Configuration:
- Action Link Title: "Send Invitation"
- Action Rules (Two rules):
- Rule 1 - Send Email:
- Action: Send Email
- To: {attendee_email}
- Subject: "You're Invited: {event_name}"
- Body: Event details and registration confirmation
- Rule 2 - Mark as Sent:
- Action: Update This Record
- Field: Invitation Sent → Yes, Date Sent → Current Date/Time
- Rule 1 - Send Email:
Example 7: Request Approval
Scenario: Employees click "Submit for Approval" to send their expense report to their manager.
Configuration:
- Action Link Title: "Submit for Approval"
- Action Rules:
- Rule 1 - Update Status:
- Action: Update This Record
- Field: Status → "Pending Approval", Submitted Date → Current Date/Time
- Rule 2 - Notify Manager:
- Action: Send Email
- To: {manager_email}
- Subject: "Expense Report Approval Needed: {employee_name}"
- Body: Include report details and approval link
- Rule 1 - Update Status:
6. Send SMS
Example 8: Urgent Notification
Scenario: Dispatch manager clicks "Alert Technician" to send urgent SMS to on-call staff.
Configuration:
- Action Link Title: "Alert Technician"
- Action Rule:
- Action: Send SMS
- Conditions: Status equals "Urgent"
- SMS Configuration:
- To: {technician_phone}
- Message: "URGENT: Service call at {location}. Contact: {customer_phone}"
7. Generate PDF
Example 9: Generate Invoice
Scenario: Click "Generate Invoice" to create and email an invoice PDF to the customer.
Configuration:
- Action Link Title: "Generate Invoice"
- Action Rules:
- Rule 1 - Generate PDF:
- Action: Generate PDF
- Template: Invoice Template
- Save to: Invoice PDF field
- Rule 2 - Email Invoice:
- Action: Send Email
- To: {customer_email}
- Subject: "Invoice #{invoice_number}"
- Attachment: {invoice_pdf}
- Rule 3 - Update Status:
- Action: Update This Record
- Field: Status → "Invoiced", Invoice Date → Current Date/Time
- Rule 1 - Generate PDF:
Multi-Action Workflows
Example 10: Complete Order Workflow
Scenario: "Ship Order" button performs multiple actions: update order status, create shipping record, send tracking email, update inventory.
Configuration:
- Action Link Title: "Ship Order"
- Action Rules (4 rules executed in sequence):
- Rule 1 - Update Order:
- Action: Update This Record
- Fields: Status → "Shipped", Ship Date → Current Date/Time
- Rule 2 - Create Shipment Record:
- Action: Insert Connected Record (Shipment)
- Fields: Tracking Number, Carrier, Ship Date
- Rule 3 - Send Email:
- Action: Send Email
- To: {customer_email}
- Subject: "Your Order Has Shipped!"
- Body: Include tracking information
- Rule 4 - Update Inventory:
- Action: Update Connected Records (Inventory)
- Field: Quantity → Decrease by order quantity
- Rule 1 - Update Order:
Conditional Action Rules
Example 11: Tiered Approval
Scenario: "Approve" button behavior changes based on approval level required.
Configuration:
- Action Link Title: "Approve"
- Action Rules:
- Rule 1 - Manager Approval (Low Amount):
- Condition: Amount is less than $1,000 AND Logged-in User Role equals "Manager"
- Action: Update This Record
- Field: Status → "Approved"
- Rule 2 - Director Approval Required (High Amount):
- Condition: Amount is greater than or equal to $1,000 AND Logged-in User Role equals "Manager"
- Action: Update This Record
- Field: Status → "Pending Director Approval"
- Rule 3 - Director Final Approval:
- Condition: Status equals "Pending Director Approval" AND Logged-in User Role equals "Director"
- Action: Update This Record
- Field: Status → "Approved"
- Rule 1 - Manager Approval (Low Amount):
Action Link Visibility
Hide Based on Status
- Show "Approve" button only when status is "Pending"
- Hide "Ship" button if already shipped
- Show "Reopen" button only for closed items
Hide Based on Role
- Show "Delete" button only to administrators
- Show "Approve" button only to managers
- Show "Edit Financial Data" only to finance team
Hide Based on Conditions
- Show "Cancel Registration" only if event date is in the future
- Show "Refund" only if payment was received
- Show "Resend" only if email was previously sent
Best Practices for Action Rules
1. Use Descriptive Button Text
2. Add Confirmation for Destructive Actions
- Delete operations
- Irreversible status changes
- Batch operations affecting multiple records
- Financial transactions
3. Use Conditions to Prevent Errors
- Don't approve already approved items
- Don't ship orders that are already shipped
- Don't delete records with dependencies
4. Provide Feedback
- Use success messages
- Send confirmation emails
- Update visible status fields
- Redirect to appropriate pages
5. Organize Related Actions
- Put approval actions together
- Separate destructive actions (delete) from others
- Use consistent positioning across pages
6. Test with Different User Roles
- Different user permissions
- Various record states
- Edge cases and error conditions
Advanced Action Rule Scenarios
Scenario 1: Approval Chain
Requirement: Purchase requests go through multiple approval levels based on amount.
Solution: Multiple action links with conditional rules:
- "Manager Approve" button (for managers):
- Condition: Amount < $5,000
- Action: Set Status to "Approved"
- OR Condition: Amount ≥ $5,000
- Action: Set Status to "Pending Director Approval", send email to director
- "Director Approve" button (for directors only):
- Visibility: Only when Status = "Pending Director Approval"
- Action: Set Status to "Approved"
Scenario 2: Smart Status Transitions
Requirement: Different buttons available at different workflow stages.
Solution: Status-specific action links:
- "Start Work" button: Visible only when Status = "Not Started"
- "Pause" button: Visible only when Status = "In Progress"
- "Resume" button: Visible only when Status = "Paused"
- "Complete" button: Visible only when Status = "In Progress"
- "Reopen" button: Visible only when Status = "Completed"
Troubleshooting Action Rules
Action Link Not Visible
- Visibility rules on the action link
- User permissions for the component
- Link position settings
- Component is displaying records correctly
Action Not Executing
- Rule conditions are met
- Required fields are populated
- User has permissions to modify records
- No errors in browser console
Wrong Records Updated
- Action type (Update This vs Update Connected)
- Connection field is correct
- Conditions are filtering properly
Emails Not Sending
- Email field contains valid address
- Email merge fields are correct
- Conditions allow email action
- Email sending limits not exceeded
Hands-On Exercise
Setup: Expense Report System
- Create Expense Reports table with fields:
- Employee Name, Amount, Description
- Status (options: Draft, Pending, Approved, Rejected)
- Submitted Date, Approved Date, Approved By
- Create a table component showing all expense reports
Build Action Links
- "Submit for Approval" Action Link:
- Visibility: Status equals "Draft"
- Action Rules:
- Update Status to "Pending"
- Set Submitted Date to Current Date/Time
- Send Email to manager
- "Approve" Action Link:
- Visibility: Status equals "Pending" AND User Role equals "Manager"
- Action Rules:
- Update Status to "Approved"
- Set Approved Date to Current Date/Time
- Set Approved By to Auto Logged User
- Send Email to employee
- "Reject" Action Link:
- Visibility: Status equals "Pending" AND User Role equals "Manager"
- Action Rules:
- Update Status to "Rejected"
- Send Email to employee with rejection notice
Test the Workflow
- Create a draft expense report
- Click "Submit for Approval" - verify status changes and email sent
- As manager, click "Approve" - verify approval details recorded
- Verify emails sent at each step
Summary
- Attached to action links in data components
- Execute when users click buttons or links
- Perfect for approvals and workflow transitions
- Support multiple actions per button
- Use conditions for smart, context-aware behavior
- Control visibility based on status, role, or conditions
- Essential for building interactive applications
We'd love to hear your feedback.