Skip to main content

Questions tagged [action]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
24 votes
4 answers
28k views

How invocable method and bulk behavior in Process Builder work?

I am trying to understand how invocable method called from Process builder behaves. I have Process Builder process on Account which has apex action. Apex action needs to be executed for record inserts....
apn's user avatar
  • 1,722
20 votes
8 answers
66k views

Set width of modal window of lightning action

Do you know how can I set the width of a modal window opened by a lightning component action? In the edit options I can set only the height but is not enough because the content of my table is not ...
DarkSkull's user avatar
  • 1,739
14 votes
3 answers
5k views

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

I have an editable page block table displaying SObjects records per row. There are also actions per row that only modify the row's record. <apex:pageBlockTable> <apex:column><apex:...
Robert Sösemann's user avatar
11 votes
3 answers
35k views

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

I have a lightning component which is included inside a visualForce page. When accessing the page directly with a url parameter 'Id' this works fine (component loads inside the vf page and display ...
Hasantha's user avatar
  • 2,045
10 votes
2 answers
4k views

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

I have a visual force page as follows which includes a component call Example one, Component has a command button and I want to call the standard controller save action of VF page from the VF ...
Hasantha's user avatar
  • 2,045
9 votes
4 answers
9k views

Lightning New Case action override

I have action override on New Case button which runs our custom component. As you know, we can create a new Case from different places in org, e.g. from related lists. When creating a Case from ...
jm.'s user avatar
  • 101
8 votes
3 answers
509 views

Urban Legend? Must Return PageReference To Rerender

So when I was learning the platform, I was told during multiple code review sessions that in order to rerender after taking an action, you had to return a PageReference (even if null) in order to let ...
Adrian Larson's user avatar
  • 151k
7 votes
3 answers
433 views

Is there a clever abstraction to convert Lightning Component action responses to promises?

Coming from Angular and Ember, where making Ajax requests resulted in a Promise, I find it a little disappointing and frustrating that SFDC wants me to get back into callback hell by setting callbacks ...
Brian Kessler's user avatar
7 votes
2 answers
7k views

How to add the quick action on lightning List view Record page?

I have a object and i create a list button on object to delete the all records on click on button and add that button on record list view page, somehow that is working fine in salesforce classic but ...
SFDC_USER's user avatar
  • 124
7 votes
1 answer
882 views

Lightning Component Action Service - Alternative for 'deprecated' Exclusive actions?

Lightning Component Action Service uses a "boxcar" pattern to bundle server-side action requests into a single call, executes them all on the server, provides a bundled response and then the framework ...
Bryan Isbell's user avatar
7 votes
1 answer
438 views

Is it possible to execute post exit criteria action in Marketing Cloud Journey?

I am using Salesforce data as an Entry Audience of the journey in Marketing Cloud. I have defined exit criteria in the journey to remove the subscriber from the journey after the value of a checkbox ...
Andrej Lucansky's user avatar
7 votes
0 answers
632 views

Lightning Datatable Action Violates Content Security Policy directive

I'm using Lightning Datatable with Static Actions and following the guide in Developer Salesforce.com Lightning Datatable component guide but getting the following error (seen in the Chrome developer ...
Amul Shah's user avatar
  • 133
6 votes
1 answer
8k views

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

One of SObject Lightning pages contains an Action Button which opens a custom Visualforce page. How can I close it in other way than clicking the 'X' button? So far I've tried: window.close(), ...
Przemysław Długoszewski-Tamoń's user avatar
6 votes
1 answer
5k views

How to set a Predefined Field Value lookup field by ID?

I created an Opportunity Action, using the OpportunityLineItem as the Target Object. I want to set a Predefined Field Value for the field PricebookEntryID. When I add a new predefined value, select ...
jpmonette's user avatar
  • 4,440
6 votes
1 answer
2k views

Possible to call a javascript and action function from click

I want to call a Javascript function as well as issue a backend call at the moment a button is clicked. This is my code right now : <apex:commandButton value="Search" action="{!objectCollection}...
user2582622's user avatar
6 votes
1 answer
584 views

Lightning: Caching Actions Across Components

I have been using Storable Actions to help reduce the amount of identical calls that are going back to the server. Everything is working great but I have a question surrounding how this works across ...
techbusinessman's user avatar
5 votes
2 answers
5k views

how to access the save button in a modal when implementing the force:lightningQuickAction

I am actually creating a component that will implement the force:lightningQuickAction so that my component open in a modal window from the action button.I would like to capture the event where the ...
vanessen's user avatar
  • 2,705
5 votes
0 answers
301 views

Visualforce Action Button on Lightning Record Page leaves an entry in browser history causing re-execution. Can this be prevented?

(NOT SURE, BUT THIS ISSUE MIGHT BE A SALESFORCE BUG OR AT LEAST AN INCONSISTENCY) I have defined an Action of type "Custom Visualforce" like this The button for this Action is "◈ Clone&...
Uwe Heim's user avatar
  • 28.4k
5 votes
1 answer
341 views

How to Activate a File Drop Automation via the API

I can create a file drop triggered automation through both SOAP and REST API's but I cannot figure out how to switch them from "Inactive" to "Active". Any help would be be greatly appreciate, thanks!
Brett's user avatar
  • 153
4 votes
2 answers
21k views

Passing record id from quick action to lightning component

I have an action on Contact page which opens a lightning component. How do I pass the current Contact record id to the lightning component?
Dedo's user avatar
  • 5,017
4 votes
1 answer
2k views

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

In a clientside controller of a Lightning Component I want to retrieve a complex structure of data. The reason is, that I don't want to fire more than on action to avoid multiple roundtrips. Therefore ...
Uwe Heim's user avatar
  • 28.4k
4 votes
3 answers
11k views

New Task Action missing in Lightning Experience

I've already added the new task in the Salesforce1 and Lightning Experience actions but when viewing it in the detail page, there's no new task. May I know why is that? This is the screenshot of the ...
JMRAF69's user avatar
  • 133
4 votes
2 answers
7k views

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

I am new to LWC development, but I do know my Apex code and VF pages. What I am looking for: clicking a quick action on a standard Lightning record page should open a modal Lightning window (which I ...
Sander de Jong's user avatar
4 votes
1 answer
2k views

How to call controller extesion action from VF component

This question is similar to How to call a standard controller action of a VF page from a VF component, but there are two differences I see: I'm not using a standard controller the <apex:form> ...
Nick C's user avatar
  • 6,790
4 votes
3 answers
2k views

How to make a Server-side call with a lightning event (where to bind the method name in client side)?

I created a Lightning Component to save an account, which loads a particular account based on the URL parameter (id). I am having a trouble with saving the record with an event, the problem is I ...
Hasantha's user avatar
  • 2,045
4 votes
1 answer
502 views

Is apex:actionPoller asynchronous?

I have an action poller in my controller and I want check for a batch process if it is completed or not? I am querrying the Batch process to check if completed. I am not sure if this is async or sync ...
akash's user avatar
  • 937
4 votes
2 answers
1k views

How to display a single quote in success message of Lightning Action?

I'm trying to use a single quote in success message of Account record action. The system add's an escape character in front of it. Escape character is shown in the success message. Any idea how to ...
Domantas Kavaliauskas's user avatar
4 votes
1 answer
1k views

Lightning : How to add a button that executes a method at server side?

I am consuming a web service that gets me leads from another plateform. All this is done in a method in the apex class. In Salesforce Classic, I am able to create a custom button where I can call ...
Samidjo's user avatar
  • 201
4 votes
1 answer
1k views

Custom 'new' button to create child record and set saveURL to parent

What i want to do should be easy to do via URL hack, but looking at legitimate ways of doing this. I want to create a child invoice line item from parent invoice and set the save url to the parent ...
gorav's user avatar
  • 4,537
3 votes
1 answer
5k views

Dynamic Related List Not Supporting Custom Actions?

I created a new dynamic related list - single as it satisfies my requirements which includes renaming my related list and filtering/showing only specific records. However, my custom actions do not ...
Micz Domz's user avatar
  • 685
3 votes
1 answer
2k views

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

I am actually using lightning components with VF, to allow my user to search for a particular account. According to the client spec, the user will only type their letters and the search result should ...
vanessen's user avatar
  • 2,705
3 votes
2 answers
3k views

ApexPage.Action passed to VF component as component stays null and cannot be invoked

I have a custom VF component that gets passed in an ApexPages.Action (=passedInAction()) that needs to be invoked when the user performs some changes inside the component (=doInvokeAction() method). ...
Robert Sösemann's user avatar
3 votes
1 answer
6k views

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

I read the other references to this error, but I don't see one specifically relating to an Apex function call. I deployed a Change Set with the Process, Custom Setting & Apex classes. The class ...
Duncan Stewart's user avatar
3 votes
1 answer
614 views

Supply sObject record to process builder flow via REST API

I'm trying to invoke a custom flow (built via process builder) via REST API. The process begins with a contact record, This process starts when another process invokes it. Select an object to ...
ZAR's user avatar
  • 2,043
3 votes
1 answer
5k views

Email action not showing on my lightning layout

I added my standard email action to my page layout as shown here : But it is not showing on my chatter component on my case lightning page : I know that for case, lightning component action or ...
vanessen's user avatar
  • 2,705
3 votes
2 answers
334 views

Can a single VF page override both a standard action and a list action?

To minimize the complexity and number of distinct pages in my org I would like to use a single VF page to override both the standard Delete action and create a Delete list view action that allows a ...
abd3721's user avatar
  • 2,162
3 votes
2 answers
2k views

How to bring lightning component loaded in to a VF page via a quick action?

I have a lightning component which retrieve/update some account details. I want to call this component from a quick action. In order to call it from a quick action I need this to be in a VF page. Is ...
Hasantha's user avatar
  • 2,045
3 votes
4 answers
15k views

Is there a way to call javascript after action on visualforce page

I have an embedded visualforce page which calls a controller method on load. <apex:page name="calloutPage" standardController="Case" extensions="WsCallout" action="{!getSomething}" ...
Vick's user avatar
  • 53
3 votes
1 answer
2k views

Override Record's View Action to open a Lightning Component inside Salesforce1 App

I want to redirect user to a custom lightning component which would look like record details page with some other functionalities. Currently, Salesforce doesn't provide any inbuilt functionality to ...
DDCody's user avatar
  • 303
3 votes
1 answer
843 views

Redirect in page action attribute

To model the situation, let's say that I have two visual force pages, which use the same controller. Let's call them PageStart and PageEnd. PageStart uses action attribute for apex:page element. ...
wesaw's user avatar
  • 3,130
2 votes
2 answers
2k views

Passing parameter in getRowActions

JS Noob here. I am currently following lwc datatable documentation to create a datatable with actions. The constructor has an argument as 'data' which I want to pass in getRowActions method. The '...
lambad's user avatar
  • 385
2 votes
3 answers
20k views

how to call another visualforce page from an apex command button

I have an Apex command button in my Visual Force page. Using that button I want to call another visual force page, which in turn should call action function written in the controller. Please advise.
prasanth's user avatar
  • 177
2 votes
1 answer
2k views

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

How can we add a new action (like Edit & Delete) for each record on the standard list page (Salesforce Classic)?
Shivangi Patel's user avatar
2 votes
1 answer
795 views

The response from the backend takes too long

After performing the $A.enqueueAction(anAction); the response provided with anAction.setCallback(this, aCallback); takes too long to execute (I should wait for something like 1-5 minutes after $A....
manymanymore's user avatar
2 votes
2 answers
4k views

Control the Action popup page width in Lightning Experience [duplicate]

I have an action on Contact page which opens a lightning component. The component opens as a popup/modal window, at a specific width. How can I change this width to make it wider?
Dedo's user avatar
  • 5,017
2 votes
1 answer
987 views

How to call Queueable apex method from Visualforce Page commandButton?

Right now if I call the action button without Queueable Apex, from all the parameters I get from the Visualforce page and then perform action on the backend, due to the Apex Triggers I always will get ...
compski's user avatar
  • 1,352
2 votes
1 answer
2k views

Lightning action call inside setTimeout returns result only when window (tab) loses focus

I have a Lightning action call inside a recursive setTimeout call. I call the action immediately and then every 3 seconds until the result it not null. I see my console.log('tick'); immediately. But ...
David's user avatar
  • 97
2 votes
1 answer
552 views

Salesforce Classic / Inline VisualForce Page - Can an inline VF page be edited while editing the main record (at the same time)?

Pretty simple question I think - but I googled it and searched for it on Salesforce stack to no avail so far. I have an inline VisualForce page (using the standard controller obviously) that sits ...
Morgan Marchese's user avatar
2 votes
1 answer
238 views

Changing the default User for Action in Case HIstory

I'm newbie to salesforce platform and starting to learn. Currently, we are using salesforce service cloud and have implemented ticketing system and have bunch of things being tracked in case history. ...
lalit's user avatar
  • 133
2 votes
1 answer
1k views

URLFOR() not preserving retURL through Record Type selection

I'm trying to add an <apex:outputLink /> tag to a VF page and use the URLFOR() function to direct the user to create a new Case. I want it so that when they save or cancel on the new Case ...
dBeltowski's user avatar
  • 3,048