Skip to main content
30 votes

Set width of modal window of lightning action

There seems to be some confusion around this question. The question asks specifically how to increase modal width when the modal is opened by a lightning action button. Some answers will work when ...
Daniel Collier's user avatar
16 votes
Accepted

Lightning New Case action override

There is a solution that does indeed work, but it's a bit fragile because it's parsing the entire URL (assuming a structure that could change): https://developer.salesforce.com/forums/?id=...
Jon Duelfer's user avatar
  • 1,106
12 votes

How invocable method and bulk behavior in Process Builder work?

You can also create an @InvocableMethod that takes in a List of a custom class. By doing this, you can pass in parameters in the Process Builder public with sharing class ActionForProcessBuilder { ...
Scott Pelak's user avatar
  • 7,544
11 votes
Accepted

lightning:datatable actions menu is hidden

As it turns out the overflow properties had to be set to visible not just on the slds-scrollable_y class but also on the slds-scrollable_x class. Problem solved.
Mossi's user avatar
  • 3,986
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 ...
Przemysław Długoszewski-Tamoń's user avatar
10 votes

Set width of modal window of lightning action

Okay, So I had the same requirement where I needed to increase the pop-up size. So I have gone through various link also this. But none of them seems working for me. I tried to put the css suggested ...
Dheeraj_Vashist's user avatar
10 votes

Passing parameter in getRowActions

To make sure you have access to class variables, bind this to the function: { type: 'action', typeAttributes: { rowActions: this.getRowActions.bind(this) } },
sfdcfox's user avatar
  • 497k
8 votes
Accepted

Passing record id from quick action to lightning component

You can refer to the documentation here basically, you have implement the force:hasRecordId attribute: <aura:component controller="yourControllerifany" implements="force:hasRecordId"> declare ...
glls's user avatar
  • 20.2k
8 votes
Accepted

Dynamic Related List Not Supporting Custom Actions?

You cannot add custom action on the related list. Review the bellow idea : Allow quick action on related lists However, you can use a custom button on the related list (Display Type : List Button). ...
Vitalii Dehnerys's user avatar
7 votes
Accepted

Urban Legend? Must Return PageReference To Rerender

Analysis Conclusion You do not need to return a PageReference for rerender to understand when the action has completed. So if you have a method that will never cause a redirect, you can make it void ...
Adrian Larson's user avatar
  • 151k
7 votes
Accepted

Action remains in queue in lightning component when launched from timeout function

The behaviour is mentioned in the docs here Use $A.getCallback() to wrap any code that modifies a component outside the normal rerendering lifecycle, such as in a setTimeout() call. The $A....
Mohith Shrivastava's user avatar
7 votes
Accepted

New Task Action missing in Lightning Experience

When viewing the Activity composer related list, you may notice that some activity actions within the lightning experience do not appear on records even though those actions have been added to the ...
Diksha Goel's user avatar
6 votes
Accepted

Possible to call a javascript and action function from click

Yes, you can. You can use the onclick attribute like below. <apex:commandButton value="Search" action="{!objectCollection}" onclick="callJSFunc()" style="margin-left:10px" reRender="...
smukov's user avatar
  • 5,613
6 votes

How invocable method and bulk behavior in Process Builder work?

The answer for #3 (about parameters as a singleton) is a straight up no: There can be at most one input parameter and its data type must be one of the following: A list of a primitive data type or a ...
Jesse Milburn's user avatar
5 votes

Process Builder calling Apex: "We can't find an action with the name and action type that you specified."

Here's what I would do... Locate the Apex Class in the offending org Go to Develop | Apex Classes | the class See if the Status says it is active. If not, step 4 Use Developer Console or Setup | ...
cropredy's user avatar
  • 72.1k
5 votes

Lightning New Case action override

As of today, you cannot capture the "parent context" on a lightning component invoked from a related list. We have had a similar situation and found out that it is not possible and ended up creating ...
Jayant Das's user avatar
  • 30.6k
5 votes

Why are Lightning Actions for Case Object showing in Feed?

This is a expected behaviour from salesforce when feed tracking is enabled for cases or work orders, the page-level action menu on those records contains only custom buttons and supported standard ...
sanket kumar's user avatar
  • 15.4k
4 votes

Only rerender row in <apex:pageBlockTable> using <apex:actionRegion>

I found a way to rerender the rows while only processing the row you're on. I will try to outline the concept here but a a full description of my solution can be found here: Visualforce: Dynamically ...
Xtremefaith's user avatar
  • 4,570
4 votes
Accepted

How to call controller extesion action from VF component

I found 3 strange reasons why the addMethod wasn't being called. I'd love to hear from anyone that has any ideas on the why, or where I might be wrong. OnClick attribute For some reason the onClick ...
Nick C's user avatar
  • 6,790
4 votes
Accepted

Lightning: Caching Actions Across Components

I'm using a storable action (to get some metadata) that is called from multiple components. I see the behaviour mentioned in the Storable Actions documentation that when multiple requests are made for ...
Keith C's user avatar
  • 136k
4 votes
Accepted

How to download a file created by APEX

You would need to set up a download action. Arguably, this is probably most easily done with a download link: <!-- visualforce --> <a href="data:application/vnd.adobe.xdp+xml;base64,{!...
sfdcfox's user avatar
  • 497k
4 votes
Accepted

Email action not showing on my lightning layout

Go to setup and search for Deliverability. Set Access Level to All Email If it is set to System email only, or No access, it will hide the email actions on the pagelayout.
Folkert's user avatar
  • 2,722
4 votes
Accepted

The response from the backend takes too long

You need to make sure that any actions you're calling are called within the framework lifecycle. This typically means that you need to use $A.getCallback in situations where you're not responding to a ...
sfdcfox's user avatar
  • 497k
4 votes

How can we add a new action (like Edit & Delete) for each record on the standard list page (Salesforce Classic)

No, it's not possible. What you can is:- Customize the buttons on the list view i.e in your case, you can add a button near the new program button. Add or remove Custom buttons In Aloha For ...
sanket kumar's user avatar
  • 15.4k
4 votes
Accepted

while calling method showing variable undefine in lightning component

You should actually need to use JSON syntax to pass params using action.setParams() method. So in your case you need to pass it either like this: action.setParams({str:sear}); Or like this: action....
Bartosz Śliwiński's user avatar
4 votes
Accepted

Supply sObject record to process builder flow via REST API

Oh man... of course, it was a case issue. here is the proper casing for the post payload: payload = { 'inputs': [{ 'SObjectId': '0034F000005RUTOQG5' }] } SObjectId vs sObjectId (╯°...
ZAR's user avatar
  • 2,043
4 votes
Accepted

Clean way to default child record values from parent record in Lightning Experience?

A quick Action on Parent to create child records would work a charm. Also, we can prepopulate child record's fields from parent using Predefined Field Values which is somewhat similar to classic(pre-...
Pranay Jaiswal's user avatar
4 votes

Passing parameter in getRowActions

Adding more details in addition @sfdcfox answer You are facing that problem because of lexical scoping. You can use binding (as suggested by @sfdcfox) RowActions: this.getRowActions.bind(this) } OR ...
salesforce-sas's user avatar
4 votes
Accepted

How to make a Lightning modal window pop-up with a quick action?

Update: It's now Generally Available (GA) for LWC in Summer '21. For your use case (open a modal), you can utilize the ScreenAction actionType under the Lightning__RecordAction target now: <?xml ...
Kris Goncalves's user avatar
4 votes
Accepted

Automatically Publish Knowledge Article

KbManagement.PublishingService.publishArticle is supported for both classic as well as lightning. You need to pass the Knowledge__kav.KnowledgeArticleId field to it and not Knowledge__kav.Id. Sample ...
Anmol Kumar's user avatar
  • 3,651

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