23 votes
Accepted

Add button to the footer of a Lightning Quick Action component

I'm afraid you can't. I would like to be able to do it to, at least customize the behavior of the "Save" button, but unfortunately it's not possible. As you said, you need either to put the button ...
user avatar
18 votes

Actions on Case object in Lightning

There is a catch in case of cases and work orders objects when it comes to quick actions. In the article under Actions on record pages there is note that says Actions on cases and work orders ...
user avatar
  • 5,557
14 votes
Accepted

Lightning QuickAction (API) without modal

I asked in the Lightning Trailblazers org62 group about this, a few months ago, and the response we got was that SFDC understands this usecase but do not have an estimate for delivery yet. FWIW, we ...
user avatar
14 votes
Accepted

Refresh parent page on close of lightning quick action modal

You can try force:refreshView, which reloads all data for the view. So in addition to $A.get("e.force:closeQuickAction").fire(); add $A.get('e.force:refreshView').fire(); in your setCallback method. (...
user avatar
  • 13.2k
11 votes
Accepted

How to close Visualforce page opened as Quick Action in Lightning through JavaScript?

I've eventually found a solution. The following script has to be included: <script type='text/javascript' src='/canvas/sdk/js/publisher.js'></script> Then use this line to close the ...
user avatar
11 votes
Accepted

is recordId passed to lwc in a quick action?

I had to test this, but it seems there's two different behaviors for the different actionTypes. ScreenAction recordId is undefined in connectedCallback and renderedCallback unless you use it in your ...
user avatar
10 votes

How to auto close LWC quick action from JavaScript?

I found a workaround if you want to continue using the lwc quick action(as I do :)). You can use NavigationMixin and have it Navigate to the record page you're on. this[NavigationMixin.Navigate]({ ...
user avatar
  • 146
10 votes
Accepted

How to auto close LWC quick action from JavaScript?

Per today's Summer 21 release webinar, you will need to do two things Add a new import: import { CloseActionScreenEvent } from 'lightning/actions'; Then add a simple method to close it: ...
user avatar
8 votes
Accepted

How to pass parameter to flow launched from Quick Action

From the input got from Pranay's answer, I was able to launch flow from quick action. I have created a quick action in Account like: Then I created recordId variable in my flow. Using recordId I ...
user avatar
  • 3,893
8 votes

Not able to create a quick action using direct LWC in Summer 21 org

As the error states: Lightning Web Components quick actions are not supported for this entity (emphasis mine) That means that you can use LWCs as Quick Actions, but not on Work Orders. The ...
user avatar
  • 439k
8 votes

recordId is undefined in LWC quick action component

Implement a setter for the Id and add your logic here to be executed as soon as the value is populated by SF internally. _recordId; @api set recordId(value) { this._recordId = value; // do ...
user avatar
  • 6,150
7 votes

How to close a Global Quick Action Lightning Component popup?

Use $A.get("e.force:closeQuickAction").fire();inside your component controller at the necessary place. This line will close the modal box automatically.
user avatar
  • 351
7 votes
Accepted

Where in the SFDX tree do translations of quick actions go?

The translations for QuickActions are included as part of the objectTranslation metadata. So for each object, you can include translations of quickActions as follows: <?xml version="1.0" ...
user avatar
6 votes

Creating email action using template

There are actually 2 bugs in send email quick action functionality. There is no way to set a template, its something which was uncooked and served. Only on Cases does it give you that option. (https:/...
user avatar
6 votes
Accepted

Pass parameters to lightning component from a quick action

As you've discovered, you can get force:hasRecordId. Unfortunately, any other fields you want, you have to query for. The easiest way to query for them is with force:recordData; this automatically ...
user avatar
  • 439k
6 votes
Accepted

LWC Quick Action on Case

This is a platform limitation and articulated here. Quoting from the docs below NOTE Actions on user profiles, cases, and work orders can appear in a different way than on other records. Actions on ...
user avatar
6 votes
Accepted

LWC quick action not working

If you want to create the screen action then use action type as ScreenAction. Action can be used only for headless actions. For headless action, you need to define the @api invoke(){...} function in ...
user avatar
  • 10.9k
6 votes
Accepted

Error: No Lightning Web Component quick actions are available for your org

You need to mark your component as exposed so you can see it in your org, so your xml file would look like this. Right now your isExposed tag is set to false, so until you set that to true it won't ...
user avatar
5 votes

Add button to the footer of a Lightning Quick Action component

Try this. After few css trick, I managed to fix it myself. This solution override the dialog box height which you mentioned while creating custom action on an object. I hope this will help someone ...
user avatar
  • 79
5 votes
Accepted

Convert javascript button to quick action

I think no matter what kind of Quick Action you do, native or customized, it will always open a modal window in Lightning. You could create a small VisualForce page or Lightning component to add ...
user avatar
  • 10.7k
5 votes
Accepted

How to close a Global Quick Action Lightning Component popup?

The code I used was fine. I found following Known Issue existing for this same issue and it has been Fixed already in the platform now, and the Close behavior is not consistent with this Event firing ...
user avatar
  • 5,626
5 votes
Accepted

sObjectName and lightning quick action

Can you re-check this please. Because I tried the exact same code in my org and its working fine. Please check the screen shots - Note - Can you check your component version number once. Mine is 40 ...
user avatar
5 votes
Accepted

Navigate to overriden Standard New Page with LWC NavigationMixin

There is a yet undocumented state property that helps here: this[NavigationMixin.Navigate]({ type: 'standard__objectPage', attributes: { objectApiName: this.type, ...
user avatar
5 votes

recordId is undefined in LWC quick action component

You can check these QuickAction recipes from the lwc-recipes app of Trailhead Sample Gallery. These recipes are newly added and showcase different use-cases of Quick actions with lwc. ...
user avatar
5 votes

is recordId passed to lwc in a quick action?

Yes, We also get record id from ScreenType action. HTML: <template> <lightning-quick-action-panel header="Confirmation"> <p class="slds-align_absolute-center">...
user avatar
4 votes
Accepted

force:closeQuickAction not working

The reason why it is working when invoked in callback code because there is modal listener ready for the event and then modal listener can close the model. But if you write your logic on doInit ( I ...
user avatar
4 votes
Accepted

Error deploying QuickAction to Campaign

The deploying user did not have Marketing User checked in the user's detail page. Therefore, the user didn't have access to Campaigns and could not deploy the create campaign quick action.
user avatar
4 votes
Accepted

List View Quick Action

It's by design. As outlined in Set Up Mass Quick Actions: Mass quick action lets your users edit up to 200 records in a list view. You can perform mass quick actions on create and update quick ...
user avatar
  • 439k
4 votes
Accepted

How to call a WebService method from a Lightning Component that replaces a Classic JavaScript button?

Components can only have one controller, so assuming this is a generic utility called all over the place, odds are, no, you won't be able to do this directly. If you look at force:recordData, you'll ...
user avatar
  • 439k
4 votes

How to call a WebService method from a Lightning Component that replaces a Classic JavaScript button?

Thanks to Rajesh and Brian for their insight that I've taken on board. My answer here outlines what I plan to do, which is substantially also driven by the large number (around 50) of these buttons ...
user avatar
  • 131k

Only top scored, non community-wiki answers of a minimum length are eligible