Task Dependencies
What do these three scenarios have in common?
- The Sales Fulfillment team requires a signed contract prior to shipping the product.
- The Accounting team requires reconciled bank statements before closing the books.
- The Marketing team must create content prior to sending an email campaign.
Each of these distinct departmental business processes require the completion of one task before another can begin, otherwise known as task dependencies. As you can imagine, this is a feature question we often hear for TaskRay. The great news is with the power and flexibility of the Salesforce platform, dependent tasks are natively supported.
Here's a walkthrough to show just how easy it is to set up dependent tasks in your TaskRay implementation (this assumes you have admin permissions in your Salesforce instance - if not, show this blog post to your admin).
Step 1: Add the Dependency look-up relationship
- Navigate to Your Name | Setup | Create | Objects | TaskRay Tasks.
- Scroll to the Custom Fields & Relationships section and click New.
- Select Lookup Relationship and click Next.
- Select TaskRay Task for Related To field and click Next.
- Change Field Label, Field Name & Child Relationship Name to Dependency and click Next.
- Manage profile visibility and click Next.
- Click Next to add to Page Layout.
- Change Related List Label to Dependent Tasks and click Save.
Step 2: Add the Dependency field to the TaskRay Task Field Set
- Navigate to Your Name | Setup | Create | Objects | TaskRay Tasks.
- Scroll to Field Sets section and click Edit next to TaskRay Task Field Set.
- Drag Dependency field into Field Set.
- Click Save.
Step 3: Add a Validation Rule to catch Dependent Tasks
- Navigate to Your Name | Setup | Create | Objects | TaskRay Tasks.
- Scroll to Validation Rules section and click New.
- Name the rule Dependent_Tasks and set it to Active.
- Enter the sample error condition formula as outlined in the snipped below.
- Enter this sample Error Message: This task cannot be started until the dependent task is complete.
- Click Save.
Error Condition Formula
AND(
OR (ISPICKVAL(TASKRAY__List__c,"Started"),ISPICKVAL(TASKRAY__List__c,"Finished")),
NOT (ISBLANK( Dependency__c )),
NOT(ISPICKVAL(Dependency__r.TASKRAY__List__c, "Finished"))
)
Step 4: Watch it work















