Skip to content

Instantly share code, notes, and snippets.

@enreeco
Last active May 17, 2019 04:05
Show Gist options
  • Save enreeco/30f5c7c52dda0876c53c3826fd152529 to your computer and use it in GitHub Desktop.
Save enreeco/30f5c7c52dda0876c53c3826fd152529 to your computer and use it in GitHub Desktop.
Salesforce Ligthning QuickAction popup automatic close
<aura:component implements="force:lightningQuickAction,force:hasRecordId">
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
Loading data, please wait. . .
</aura:component>
({
doInit : function(component, event, helper) {
window.location.href="/apex/backgroundPage?id="+component.get("v.recordId");
setTimeout(function(){
$A.get("e.force:closeQuickAction").fire();
}, 1000);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment