

The problem here is if you are having 4 record type for task object, You need to create 4 actions for each record type of task which can be avoidable, See how:- Approach-1 Note:- Those actions can be a global action or object specific action but if you are having record types for Task and Event Object, You must assign a default record type to those actions. You need to add those action in mobile and Lightning experience section on the page layout. The twist is those action inside the standard Activity Component does not come by default. The activity timeline will show the task and events yet to come in the section called Next step while closed one in Past activities section. In Lightning, Salesforce has introduced a standard lightning Component which shows the actions to create the task and other action along with an activity timeline which shows the record you have already created. Also, both the related list shows the record created by users. In Classic, You have Open Activities and Activity History related list available on the page layout. Open Activities lets you create Task and event record with the record type selection functionality (if you are using record type for Task and event in your organization) whereas Activity history will let you Log a call or send an email. System Eventĭuring component initialization, attribute value change, rendering, etc system events are fired automatically.As migrating to Lightning from Classic, You will get confused with the way task, event and log a call are different in Lightning.

It can only be handled in the parent component. Application event can be handled all over the application.ĭon't forget to check out: Getting Started with Salesforce Lightning Components and Record Pages Component EventĬomponent Event is fired from Child Component and handled by parent component or component that fired the event. Events are fired from the Javascript controller by using fire() predefined method.Īpplication Event is fired from the Instance of component and can be handled in any component.Events handle communication between two components.Event Introduction Lightning framework uses event-driven programming
