Subscribe to Platform Events Platform Events Basics
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=QCVcFhY1ikA
#salesforce • #trailhead • #salestraining • Platform Events Basics • Subscribe to a Platform Event in an Apex trigger • Your Salesforce app uses an Apex trigger to listen to events. Once your app receives the notification from the order system through the Apex trigger, it creates a task to follow up on the order shipment. • Create an Apex trigger for Order_Event__e: • Name: OrderEventTrigger • This Apex trigger should be similar to the CloudNewsTrigger Apex trigger, but operates on the Order_Event__e event and creates tasks instead of cases. • If the order has shipped (event.Has_Shipped__c == true), create a task with the following values: • Priority: 'Medium' • Subject: 'Follow up on shipped order 105' • OwnerId: event.CreatedById • Note: You are assigning the task OwnerId to the same user who published the event. This step keeps things simple so you don't have to perform any prerequisites. • 00:00 Introduction • 00:42 Apex Class • 06:01 Coading
#############################
![](http://youtor.org/essay_main.png)