I have created a lightning quick action "Assign Case", as an alternative to a javascript button. Behind the scene the button and the quick action run assignment rules on case after performing some preliminary checks in the code.

The quick action has no user interaction. As soon as component is initialized, it runs the init method which calls server side controller.

This is good when the case record page loads for the first time and user clicks on "Assign Case" quick action. The component is initialized which runs the code.

Now if user moves away from "Assign Case" quick action (lets say clicks on some other quick action) and comes back to "Assign case", i have to assume that user whats my server side code to run again. But since the lightning component is already initialized, code doesn't run again.

In short, i want "Assign case" quick action to behave like a button. Every time user clicks on it, component should initialized again, which would run the code in init function.

  • 1. force:lightningQuickAction opens a modal - how do you handle that? 2. please share your component code – Itai Shmida Apr 8 '18 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.