Skip to main content

How to Guide: Process Builder - Click & Create!

Taking a break from Process Builder for a quick chore

Best Practice: Sandbox First!

Before I start in Production, I am building this process in a Sandbox.  I used CopyStorm/Restore to populate the sandbox with a few dozen accounts along with their related opportunities, contacts, tasks, products, etc.  I also restored email templates, so that I could use some that had already been created instead of starting from scratch. 

  • Having a rich test data set will allow me to test each step of my process with production data, without touching the actual production org.  If you do not have the option to populate sandboxes in this way, you can always manually create test data or use data loader (Time consuming!)

I created the first node to associate any open tasks from the account to a new opportunity then tested this node to make sure that it was working the way I liked. 
(Simply activate the process, test, then clone the process to start back where you left off.)






When you are creating a process, test each step as you go! I’ve made the mistake of creating an elaborate process, but never testing.  I found a mistake after activation, but had a very hard time finding the issue.  Testing teach step as it is created is away to avoid making silly errors.





We are not going to walk through every step of this 10 node process, but I’ll share two of the trickier steps.  If you are working on a process and get stuck, Trailhead Baby would love to hear your story!  

How to Close Tasks:
Getting steps in the correct order was the most difficult part of closing tasks prior to creating new ones.  The “close task” nodes for each step had to be placed prior to the “create new task” nodes.  For example, this action closes any open tasks when an opportunity is changed to status “invoiced.”
The action of opening new tasks for the invoiced opportunity is the next node. 




Creating Tasks:
From an initial glance, creating a task record is not difficult - simply create a record of the type “task.”  There are a few gotchas in task creation that you may find helpful.  These come from questions that Trailhead Baby has been asked many times!  


A task is like a household chore.  Go clean may be a good thing to say, but it will rarely yield the desired results. Who cleans?  Where to clean? When? What to clean? When creating a task, make sure that you ask all of these questions and answer them within your process. 

  • Avoid hard coded dates!  If you need a task to be due 7 days from today, use a formula: TODAY()+7.   You can also use a more complicated formula.  For my invoice follow up task, I wanted the invoice follow up task to occur at one of two times:  If a purchase order was received with an anticipated pay date, 7 days after that date.  If the purchase was being made with a credit card or via a method that did not include a purchase order, the anticipated pay date field would be null, so I needed the task to occur 7 days after the anticipated close date.  
  • Assign & Relate the Task!  This is the “who” and the “where” of our chore.  A task must be assigned to somebody - typically a field reference such as the opportunity owner vs. a hard coded user.  Where?  A task must be tied to an object such as the account or opportunity.  
  • Not necessary necessities! When creating a “task” action, only a few fields are added by default: Assigned to ID, Priority, and Status.  Technically, you could set up a task with just these values, but the task wouldn’t answer our critical questions of who-where-when-what.  Add the fields that you need! I always have a task subject- the “what” plus a NameID for an extended “who.”  This gives the task owner enough information to complete the task without digging through the account to find out what to do.  With process automation, the fewer clicks a user needs the better!  Our example creates a task for the opportunity owner to contact the main contact on the opportunity regarding invoice payment. 



All done!  I’m off to eat more macaroni and cheese!



Comments

Popular posts from this blog

Process Automation Specialist Superbadge - 5

A project with Daddy: My favorite daily process! Making dinner for Mom! Tonight's challenge involves the creation of two processes.   Processes.  Have you guessed the theme of the photos that go along with the Trailhead - Process Automation Specialist Superbadge series?They are a few of my favorite day to day processes!  You, my amazing reader, get more than tips for a Salesforce Superbadge.  You also get personal insight into the life of a Trailhead Baby!  I hope that you feel inspired. Process Builder sketch Last night, I drew a rough sketch of my process: Was it pretty?  No. Did it help?  Yes! The sketch allowed me to organize all of the instructions into a reasonable order before I started clicking.  It also removed the approval steps from Process Builder and highlighted (with *'s) the prerequisite items to building my process. * Email Alerts I needed the Email Alerts set up before I could create either the process or ...

Security Superbadge -2

Challenge 2: Record-Level Security Settings I created the three user profiles last time, so the starting point tonight was the next tier of security - roles.  I set up the roles per the provided org chart, making sure to follow the opportunity restrictions from the directions. Next, I set up the required user and assigned her to the correct profile and role. Hint:   Use a real email address for Samantha Cordero.  You will need to login as Samantha in order to create an opportunity for her.  While you are at it, go ahead and login to Salesforce1 as Samantha. Once Salesforce1 is enabled, you can set up the appropriate permissions.  You may want to take take a peek at a Salesforce Knowledge Article .   Me - as a Project Manager. Next, I addressed the special role - Project Managers Project Managers require a role, permission set, and a  sharing rule.  Whew! For the final step, I set up the remaining sharing rules in     ...

Einstein Analytics Data Preparation Specialist Superbadge - 1,2,3

Hello all! It's time for another superbadge! I started this superbadge a long time ago... it's time to finish it!  My goal is to complete this badge before my little brother starts to walk.  He's getting close... Step 1 - A quiz.  You're on your own! Step 2- This is one checkbox in setup.  You're on your own! Step 3- Let's talk about that.... Dataflow. The best tool to use when crafting your dataflow is the data monitor.  It can help troubleshoot issues to find which part of the process needs some work. For example.... Why were rows not created? The problem? A box was checked that should not be checked.... The alias name was not correct for the "register" node. Once you see that beautiful green "Success" message, it's time to check the challenge.  Do not be discouraged if you get a few error messages.  This superbadge is EXTREMELY picky on syntax.  A few common errors: You can see this error and st...