I'm new to Salesforce lightning. I'm trying to build a quick action that performs backend logic based on a condition else display a toast. I have created the component and associated it to an object based quick action. Now, after invoking the toast event, I'm trying to close the quickAction modal popup using $A.get("e.force:closeQuickAction").fire();
This doesn't seem to work.
So, I have removed the controller logic and just added that one line and it still doesn't work.
({
doInit : function(component, event, helper) {
$A.get("e.force:closeQuickAction").fire();
}
})
Requesting to guide me on this. Thanks!