Hot answers tagged

29 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
17 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
14 votes
Accepted

How to call a standard controller action of a VF page from a VF component

This should be doable by passing an argument of type ApexPages.Action to the component <apex:page standardController="Account"> <apex:form> <apex:pageBlock title="My Content" mode="...
cropredy's user avatar
  • 69.1k
13 votes
Accepted

How to pass parameters for Lightning component called via quick a action

I resolved the issue with adding an attribute to the component and, set the account Id to the new attribute as follows and referred it back in the doInitit() helper method. New Attribute in component ...
Hasantha's user avatar
  • 2,045
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,484
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,886
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
  • 477k
8 votes
Accepted

Can classes be used as types for return values for actions in Lightning Components?

Every property returned should be annotated as @AuraEnabled. public class Data { @AuraEnabled public List<Opportunity> Opportunities { get; set; } @AuraEnabled public String ...
Mohith Shrivastava's user avatar
8 votes

How to call a standard controller action of a VF page from a VF component

You can pass the standard controller to the component, allowing you to invoke its functions normally: public class ComponentControllerClass { public ApexPages.StandardController ...
sfdcfox's user avatar
  • 477k
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
  • 20k
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
  • 149k
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
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
6 votes
Accepted

how to call another visualforce page from an apex command button

Put the below code in the controller action method that is being called on click of command button PageReference pr = new PageReference('/apex/yourVFPageName'); pr.getParameters().put('key','value'); ...
Saumya Ranjan Satapathy's user avatar
6 votes
Accepted

How to avoid page reload on standardController standard action (Save)?

try action="{!quickSave}" Standard Controller action
o-lexi's user avatar
  • 3,094
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,503
6 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
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
  • 69.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.2k
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
  • 14.9k
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,490
4 votes

How invocable method and bulk behavior in Process Builder work?

I did this just yesterday - so haven't tested it thoroughly..... But - I passed in the ID from process builder & got it in the method below as a list of IDs When I ran in 68 records (batch size ...
user28617's user avatar
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 Cook's user avatar
  • 6,354
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
  • 134k
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
  • 477k
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,672
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
  • 477k

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