- Starter
- Standard
- Premium
TaskRay offers many different options to streamline and manage repeatable processes. When it comes to customer onboarding, it is common for organizations to set up templates outlining the entire process. These templates are then cloned to create onboarding projects for every new customer as needed. For more information on templates and cloning, see the following articles: Intro to Templates and Clone Templates.
The template approach is great for streamlining the overall onboarding process. However, there could be instances where you might need to account for some one-off activities. Throughout this article, we will follow a sample use case that incorporates cloning a single task and adding the copy to an existing onboarding project for a customer.
As you go through these instructions, keep in mind that there are many other possibilities for customizing the process and you can modify the setup to suit the specific needs of your organization.
Here is a summary of what will be covered in this article:
Sample Use Case and Configuration Overview
The sample use case that we will be following throughout this article incorporates cloning an individual TaskRay Task and adding it to an in-flight onboarding project for a customer. In the sample use case, the task will be cloned and added to the onboarding project in the event that the customer's implementation requires advanced assistance.
Details below.
Sample Use Case and Goal
Goal
Clone a template task and add it to the customer's onboarding project whenever the customer's implementation requires advanced assistance.
Use Case Details
- A customer is going through onboarding.
- An Account record exists for the customer.
- A TaskRay Project (related to the customer's Account) exists to track the onboarding process.
- Account has a custom checkbox Advanced Implementation, which is checked if the customer requires advanced technical assistance.
- When the checkbox is checked, that triggers an automation to clone a template TaskRay Task and add its copy to the customer's onboarding project. The task contains additional details for providing the advanced technical assistance to the customer.
Sample Template Configuration
- For the purpose of this automation, we will need a template task.
- The template task will have the following preconfigured/filled out:
- Some parameters pre-set, such as: Priority = High, Task Owner = Technical Architect (queue), Description filled out, etc.
- Checklist containing some specific action items to execute as part of the task.
- For reference: Intro to Templates.
Additional Architectural Details
- A custom Advanced Implementation checkbox field is added to the Account object.
- The customer's onboarding is managed through a TaskRay Project. The project is related to the Account via a lookup relationship.
Automation Overview
- The automation is set up using Flow. The Flow is triggered when the Advanced Implementation checkbox on the Account is set to true.
- The Flow then captures the TaskRay Project related to the Account where the checkbox was checked.
- As the final action of the flow, the Clone a TaskRay Task Apex action is leveraged to create and add a new task to the identified project.
Template Configuration
The first step of the process is to set up the necessary template in the TaskRay Template Hub. You can learn more about creating templates here.
Set Up the Template
For the purpose of the use case outlined in this article, we will only need a single template task. In TaskRay, a task is considered to be a template task if it is created as part of a template project.
For the purpose of this configuration, the template task should include details that should carry over when the task is cloned and added to the new project. Below is a sample template task configuration:
- Task Name: Advanced Implementation
- Priority: High
- Owner: Technical Architect (queue)
Tip: In TaskRay, Salesforce queues are often used as placeholders for assignment. In this example, the Advanced Implementation task is planned to be executed by a Technical Architect, but the specific person could vary depending on the onboarding project. As such, the Technical Architect custom queue is used as a placeholder for assignment on the template task. Then, when the task is cloned and added to the project, the task can be assigned out to an actual user, as needed. If necessary, it is also possible to automate task reassignment.
- Template task includes a checklist. The checklist outlines some items that need to be executed on the task when it is added to the project.
Get Template Task Addressable ID
Now that the template task is set up, you will need to get its Addressable ID. This ID will be used to configure the Flow later in the article.
The TaskRay Task object has a field labeled Addressable ID. To get the template task's Addressable ID, you can generate a report and surface the Addressable ID field.
Flow Configuration [Admin]
Now that the template task is set up, we are ready to configure the Flow. The Flow will be triggered from the Account object when the Advanced Implementation checkbox is selected.
Flow Overview
Below is a sample configuration of the Flow:
Follow the steps in the sections below to configure the Flow.
Step 1: Create New Flow
- From Setup, navigate to Process Automation | Flows.
- Click on the New Flow button.
- In the New Flow modal, select the Record-Triggered Flow option.
- Click on Create.
Step 2: Configure Start and Entry Conditions
When setting up a new record-triggered flow, it is necessary to specify the object and criteria that will trigger the automated process. In this case, we will select the Account object because the automation should be triggered when the Advanced Implementation checkbox is selected on an Account record.
- In the Configure Start modal, click into the Object field and search for Account.
- For Trigger the Flow When select A record is updated.
- In the Set Entry Conditions section, for Condition Requirements select All Conditions Are Met (AND).
- For the condition, set the following:
- Field = Advanced_Implementation__c (Advanced Implementation)
- Operator = Equals
- Value = True
- For When to Run the Flow For Updated Records, select Only when a record is updated to meet the condition requirements.
- Leave the remaining options as-is and click Done.
Step 3: Add Element to Get TaskRay Project
For the next step, we will be adding a Get Records element to identify the destination project for the new task to be added to. In this case, this will be the TaskRay Project that is related to the Account that is triggering the automation.
- On the Flow canvas, click on the Plus / Add Element icon below the Start element.
- Select the Get Records element.
- In the New Get Records modal, enter the Label (e.g. "Get TaskRay Project") and API Name.
- Under Get Records of This Object, click into the Object field and select TaskRay Project.
- In the Filter Group Records section, for Condition Requirements select All Conditions Are Met (AND).
- For the condition, set the following:
- Field = TASKRAY__trAccount__c (Account)
- Operator = Equals
- Value = $Record > Account ID (could also appear as {$Record.Id} ) (clickpath: $Record > Id).
- In the Sort Group Records section, set the following:
- Sort Order = Not Sorted
- How Many Records to Store = Only the first record
- How to Store Record Data = Automatically store all fields
- Click Done.
Step 4: Configure the Clone a TaskRay Task Apex Action
As the final part of the Flow, we will configure the Apex action that will be responsible for cloning the template task.
- On the Flow canvas, click on the Plus / Add Element icon below the Get Records element.
- Select the Action option.
- In the New Action modal, in the Action field, search for Clone a TaskRay Task.
- Enter a Label (e.g. "Clone a TaskRay Task") and API Name.
- Under Set Input Values, click into the Project for task field and enter {!Get_TaskRay_Project.Id} (clickpath: TaskRay Project from Get_TaskRay_Project > Id).
- For the Source Object Id field, enter {!$Record.Id} (clickpath: $Record > Id)
- For Starting Date of Task, enter {!$Flow.CurrentDate} (clickpath: $Flow > CurrentDate) (this will use the current date for scheduling the task).
- For Template Task Addressable Id, enter the Addressable ID of the template task that you saved previously (in the Get Template Task Addressable ID section).
- Click Done.
Step 5: Save and Activate the Flow
Now that the Flow is fully configured, it is time to save and activate it.
- In the top right corner of the Flow canvas, click on the Save button.
- In the Save the Flow modal, enter the Label (e.g. "Clone a TaskRay Task") and API Name.
- Click Save.
- In the top right corner of the Flow canvas, click on the Activate button.
Flow Testing
As a best practice, it is always a good idea to test custom automations to make sure that they meet requirements and follow expected behavior. Custom automations can be tested using the Debug options in Flow, using sample test records.
For the purpose of testing, you can use an Account record that has a related TaskRay Project, and updating the Advanced Implementation checkbox field on the Account record to true. The successful outcome will clone and create a new TaskRay Task in the project related to the Account.