If you are a CRM manager or Salesforce admin, one of the painstaking activities is following up on tasks when the task owner is out of the office. This leaves a lot of admins and business users gasping for support which also results in your salesforce org cluttered with many tasks on a pending status. So How do you manage these tasks that need to be done and keep the lights on?
Flow and Automation to the rescue.
The solution is to first come up with a solution to flag a user when he is out of office. There are a couple of options to do this.
- If you use chatter, there is an option to set out of office for users.
- If you are not using chatter and there is an option in your HR system like Workday or Peoplesoft, you can use your integration with your HR system to flag the user for out of office with a custom attribute.
- The other elegant solution is to use flows to automatically assign users to a queue and have queue users act on it.
Flow solution with details
- Create a queue under set up || Queues. Give the Name of queue as “Task Escalated Queue”.
- Add the required members to the queue and take note of the queue record id.
- Then create a custom formula field under set up || Object Manager || Activity. Name it as Elapsed Task. Formula can look like (TODAY() – DATEVALUE(Lastmodifieddate)) > 2.
- Then create a scheduled path flow that runs daily as below on task Object.
Above screenshot queries tasks where “Elapsed Task” formula field is true and Task owner is a user, which we check by querying the owner’s record id which starts with “005” for a user.
- Then perform an Update operation to the Owner of the task and assign the Escalation queue as the owner. Here the record id of the queue has been captured and referred in the assignment.
As an alternative, a GET element can also be added to get the respective queue id OR we can store queue id as a resource element and assign to the ownerid value.
We then save and run this flow, which will then assign the Task to an escalation queue if it was idle for N number of days.
To summarize the approach for assigning tasks to users who are out of the office, here are the best options.
- Figure out a solution to flag a user with an attribute for out-of-office with updates from the HR system to flag users who are out of office.
- Build a flow solution which is shown above which can query users or tasks that are overdue and assign the users to a queue that can be acted by users on behalf of the out-of-office users.
- Have a business process with training where escalation queue owners can take respective actions on behalf of out-of-office users and keep the leadership team notified. A follow-up on a completed task report to the out-of-office user will help the out-of-office user follow up with the escalation queue team on pending tasks and status.
As always, feel free to post your comments below or contact Manoj for further questions. You can follow this thread on any pending questions as well.
Subscribe to our mailing list and get tips to maximize salesforce to your email inbox.
I am honored to have your subscription. Stay tuned for tips to maximize your salesforce investment
Something went wrong.