Triage Cases to the Correct Queues
Not Started

Before You Begin:
1. If you haven't already, deploy the pre-requisite Flows: Flow-Into-Apex Package
2. Click on "Run Tests Only" before making any changes. This ensures the Flow works as is without updating the challenge progress.
3. Deactivate the Flow & rebuild as Apex
4. Hit the "Submit" button when you're ready to have your final solution evaluated and challenge progress updated

Flow To Convert
Triage New Cases

Description
Whenever a case gets created with a high priority, the case should automatically be assigned to the "Rapid Response Team" queue. Otherwise, the case should be assigned to the "General Support" queue.

Object & Trigger Event
Case, on Before Insert

Concepts to learn
  • Conditional Statements
  • Querying records
  • Assigning cases to queues

Resources

YouTube Videos

Salesforce Documentation



Challenge Cheat Codes
  • You might think an update statement is needed here, but in triggers, you can directly modify fields on records in Trigger.new. This is similar to how the updates in the flow are handled. Salesforce automatically saves changes to these records, so no extra DML is required.