Lightning Web Components Lightning Web Components are supported in Quick Action after 21, Here is the code to close popup. First Import library import { CloseActionScreenEvent } from 'lightning/actions' ; Dispatch event when we want to close popup this .dispatchEvent( new CloseActionScreenEvent ()); XML code < targets > < target > lightning__RecordAction </ target > </ targets > < targetConfigs > < targetConfig targets = "lightning__RecordAction"> < actionType > ScreenAction </ actionType > </ targetConfig > </ targetConfigs > Lightning Aura Components It is very easy to close aura modal, we need $A.get("e.force:closeQuickAction").fire(); Here is controller code ({ closeMethodInAuraController : function(component, event, helper) { $A.get("e.force:closeQuickAction").fire(); } }) Lightning Aura Co...
A place where you have to land for exploring Salesforce