Big Idea or Enduring Question:
As your community grows, organizations have to ensure that customers get quick answers to their questions. Question-to-Case allows moderators to escalate unresolved questions to cases from the question detail page. You can automate this escalation process using Process Builder or Lightning Flow, For example:
- Create a case from a question if, the question has received more than two likes without a reply.
- Create a case from a question immediately if the question contains the word Urgent Help.
Objectives:
After reading this blog, you’ll be able to:
- Understand the basic components of Process Builder
- Learn how to auto-create a record using Process Builder
Business Use case
Rachel Gillett is working as a System Administrator at Universal Containers (UC). He received a requirement to auto-create a case whenever a new question is created, which contains the word Urgent help in the title.
Automation Champion Approach (I-do):
There are multiple ways to solve the above business requirement. You can either use Apex trigger, Combination of Flow & Process Builder, and more. To solve this requirement, we will use the Process Builder.
There are four basic components that should be considered when using Process Builder — a trigger, criteria, immediate action, and scheduled action.
Component | Process |
Trigger | Indicates when the action should fire – only when a record is created or anytime a record is created or edited |
Criteria | Set conditions to execute the process |
Immediate Action | The action is fired immediately |
Scheduled Action | The action is fired at a scheduled time |
Before diving further, let me show you a diagram of a Process Flow at a high level. Please spend a few minutes to go through the following Flow diagram and understand it.
Let’s begin building this automation process.
Guided Practice (We-do):
There are 4 steps to solve Rachel’s business requirement using Process Builder. We must:
- Define process properties
- Define evaluation criteria
- Define process criteria
- Add action – create a record
Step 1: Define Process Properties
- Click Setup.
- In the Quick Find box, type Process Builder.
- Select Process Builder, then click New.
- Name the Process and click the Tab button. The API Name will populate.
- As a best practice, always input a description.
- The process starts when A record changes.
- Click Save.
Step 2: Define Evaluation Criteria
- Click on the Add Object node to begin selecting the evaluation criteria.
- Select the Question object from the dropdown list.
- Start the process only when a record is created.
- Click Save.
Step 3: Define Process Criteria
- Click the Add Criteria node to begin defining the process criteria.
- Name the criteria.
- The criteria should execute actions when the conditions are met.
- Set Conditions
- Row 1
- Field: Question | Title
- Operator: Contains
- Type: String
- Value: Urgent Help
- Row 1
- Select All of the conditions are met (AND).
- Click Save.
Step 4: Add Action – Create a Record
- Below Immediate Actions, click Add Action.
- For Action Type, select Create a Record.
- Name the action.
- Select the Case record type.
- Set Field Values:
- Row 1:
- Field: Status
- Type: Picklist
- Value: Escalated
- Click Add Row
- Row 2:
- Field: Priority
- Type: Picklist
- Value: High
- Click Add Row
- Row 3:
- Field: Question ID
- Type: Field Reference
- Value: Question | ID
- Click Add Row
- Row 4:
- Field: Contact ID
- Type: Field Reference
- Value: Question | CreatedBy | Contact ID
- Row 1:
- Click Save.
In the end, Rachel’s Process will look like the following screenshot:
Almost there! Once everything looks good, click the Activate button.
Note:- Before you activate your process, you will want to make sure that you have assigned data in the correct format because Process Builder obeys validation rules. If some fields are required by using validation rules, then make sure you have added those fields. Conversely, if some fields are required on the page layout, you can ignore those fields.
Proof of Concept
Now onwards if a business user creates a question with the title Urgent Help, Process Builder will automatically create a new case. It’s time to test out the process.
- Now create a question by login into a community
- Navigate to the case tab and check out the newly created case
Formative Assessment:
I want to hear from you!
What is one thing you learned from this post? How do you envision applying this new knowledge in the real world?
Let me know by Tweeting me at @automationchamp, or find me on LinkedIn.