Skip to main content

Questions tagged [apexactionfunction]

Filter by
Sorted by
Tagged with
1 vote
0 answers
362 views

How to pass an Apex-Defined Collection Variable from apex action in flow to a screen component (LWC) in Flows?

I have been working a small requirements where I need to display the Count of all Accounts Group by CreatedDate for Calendar Year. I have created an apex action 'FetchAccountData' as below public ...
Abhishake Chandra's user avatar
0 votes
1 answer
490 views

Assigning Flow's collection variable with WrapperList generated from Apexaction and loop over

I'm calling an apex action to an invocable method which needs to return a wrapperList. Below is my invocable method & I'm having trouble accessing the returned wrapperList within my flow so that I ...
Sam's user avatar
  • 21
0 votes
1 answer
4k views

Error in AutoLaunch flow: xxx (Action) - The process type 'Autolaunched Flow' only supports 'CurrentTransaction' in 'FlowTransactionModel'

I have a screen flow in Salesforce. I saved this flow as a New Flow and changed the type to "Autolaunched Flow (No Trigger)". But this flow has many Apex Actions and for every Apex Action, I ...
ViqMontana's user avatar
0 votes
0 answers
815 views

Can't send email as Organization Wide Email Address in Apex action in a User Record Triggered Flow

I need to send an email that will pull data from multiple objects that are unrelated (meaning I can't use Email Alert). I created a custom Apex Action for this that uses an Organization Wide Email ...
Shaun van Huyssteen's user avatar
0 votes
1 answer
303 views

Problem with Action button that calls Aura component that contains a Flow with Apex action

Hello guys I have the next situation... as the title says I have an action button that calls an Aura Component that calls a Flow. this flow receives recordId input and I search its correspondent ...
sinpasharmi's user avatar
3 votes
1 answer
203 views

Invocable Apex IconName Static Resource with full background

So I've finally had some success getting a custom static resource icon to display on my apex-action component in my flow, but I can't seem to figure out how to make the background color 100% without ...
Xtremefaith's user avatar
  • 4,590
1 vote
0 answers
178 views

Pass related sobject subobject from record flow to apex action

So in Record triggered flows you can get {$Record} and pass that but is there a way I can pass {$Record.Account} as an Account object? As when you send just {$Record} it strips the related object ...
KarlLivesey's user avatar
0 votes
1 answer
112 views

Controller method not invoking when page refresh avoided

I have written an Apex method which sests the value to an automatic property called 'showPopup'. public boolean showPopup { get; set; } public void showWarningPopup(){ ...
Ruklani Attanyake's user avatar
1 vote
1 answer
213 views

Flow error only in managed package with Apex actions returning data

I have a simple flow who calls an Apex action and then tries to use the returned value. Here is the Apex method : @InvocableMethod(label='CheckInstall' description='Check registration' category='...
Emmanuel BRUNO's user avatar
0 votes
2 answers
44 views

why it is showing Formula Expression is required on the action attributes

<apex:page controller="c1" showHeader="false" sidebar="false"> <apex:form> <apex:pageBlock> <apex:pageBlockSection title="Login page"> <apex:inputText label="Name" title="...
Yi xaoi Naei's user avatar
0 votes
2 answers
772 views

how to return from the function with the object I just inserted?

public class AccountHandler { public static **Database.SaveResult** insertNewAccount(String nome) { if(nome != null){ Contact novoregistro = new Contact(FirstName= nome, ...
Lucas Vitoria's user avatar
4 votes
8 answers
12k views

Apex InvocableMethod not showing up in Flow

The Apex class is not in a package, has global visibility, is Active, has passing tests with 86% coverage, and the method has the @InvocableMethod tag but it is still not showing up in the picklist ...
nicolevy's user avatar
  • 414
0 votes
0 answers
277 views

ActionFunction not getting called from JS method

So I created a custom lookup to provide a search functionality for a contact insert/edit table. The idea is that the user can "load"an existing contact instead of creating a duplicate in the system. ...
Mauricio.Ramos1979's user avatar
1 vote
2 answers
2k views

How to pass javascript variable value in apex controller

When i click on the image it's show javascript alert in alert i got the id and open popup which is fine but after that when i call apex controller method using actionfunction i got string value null ...
cloudZigZag's user avatar
  • 1,376
1 vote
1 answer
381 views

how to bind list of dynamic boxes from VF page to controller, values are not binding when using action function with Immediate=true property

I have a requirement to capture list of names using Dynamic boxes on VF page. I am using action function for this, but behavior is getting changed based on attribute "Immediate" of action function. if ...
user26702's user avatar
  • 115
0 votes
1 answer
185 views

ActionFunction Slowness

I was hoping someone could help explain what happens when ActionFunction gets triggered that could cause the slowness that I see here: https://developer.salesforce.com/forums/ForumsMain?id=...
Ben Kass's user avatar
0 votes
3 answers
677 views

Variable from apex class not set in javascript

My variable is not set in Javascript although it is set in apex: When I click on save, the method allowSave calls the apex method insertproduct , setting the boolean errorMsg to true if a validation ...
G.Tiffany's user avatar
4 votes
1 answer
1k views

Check if input field cleared and then call an apex function

I have below auto complete Javascript code which works fine for my input text fields. But when I clear the searched value I am not getting search results as expected. Javascript Code j$(document)....
Testing_SFDC's user avatar
  • 2,968
1 vote
2 answers
483 views

Page not re-rendering on change? Method not working?

I am trying to run a soql query based on an input value on a Visualforce Page. However, I don't see that the results are displayed on the page when the input field is changed. VF Page: <apex:...
Starley Flynn's user avatar
1 vote
2 answers
962 views

Need help with NOT function

Hi I am a beginner at apex coding and salesforce. Here is my code that I would like to use the NOT() function. CASE(Lead_Source__c, "Self Generated", IF(Markup__c >= 0 && ...
Alias311's user avatar
  • 399
0 votes
1 answer
166 views

Why actionFunctions are not as fast as RemoteAction [duplicate]

Can anyone tell me why actionFunctions are not as fast as RemoteActions in Vf pages?
NoNicknameSFDC's user avatar
1 vote
3 answers
5k views

Why can't I get focus to stay on input field using javascript or apex:actionFunction

I have a page that I use to search Entries in a Journal in our Salesforce Communities visualforce page. The system works just fine, except that I have been asked to make it search upon keyup. This ...
anotherSFguy's user avatar
1 vote
1 answer
2k views

Calling an Apex action inside a HTML in Visualforce page [duplicate]

I need to call an apex action inside HTML. I had completed my UI design in Visualforce page with the help of HTML, now i need to call my action from controller (Custom). I am not sure how to insert ...
Venkatesh Kumar Sakthivel's user avatar
0 votes
0 answers
899 views

VisualForce drop down button creation with a Link(action) associated to it

I need to create a drop down button(command) on my Visual Force page. This drop down should have a "Link"(or a lable-Text), when we click on this link it should invoke an action. This design is ...
Venkatesh Kumar Sakthivel's user avatar
2 votes
2 answers
1k views

ActionFunction is working only with reRender="" and not with any value inside it

I am experiencing a strange behavior for the first time... I have a actionFunction in my apex compoenent, which has reRender to some panel id. The panel doesnot reRender at all even though the ...
NoNicknameSFDC's user avatar
1 vote
1 answer
362 views

Action method is not invoked in Action Method

In my button click, action method is not invoking in action function and directly going to oncomplete method.Below is the code. Controller - function cheValidation(){ callService(); } function ...
user1858588's user avatar
0 votes
1 answer
118 views

Passing Parameter from JavaScript to controller don't seem to work

I'm trying to send a parameter from Visual force page to controller to delete the row of record on pagetable via javascript using actionFunction. I'm able to get the alert messages from javascript ...
user1585871's user avatar
1 vote
1 answer
3k views

Actionfunction is not working on onchange event

I am trying to call actionFuction on selectlist onchange event but It is not working (function not going to called) Can anybody tell me what wrong in my code and the best practices follow when using ...
pornima's user avatar
  • 179
0 votes
2 answers
641 views

trouble with actionFunction

I am using a wrapper class to combine an sObject with a checkbox, then iterating over the wrappers in my list. The first column displays the checkbox, then a repeat tag iterates over a list of strings ...
VeMan's user avatar
  • 75
1 vote
1 answer
6k views

Do not VisualForce JavaScript onChange and actionSupport work together?

It seems like you can't use VisualForce JavaScript onChange and actionSupport together, because if you use onChange property on inputField then actionSupport onChange wouldn't work. There is here my ...
Patlatus's user avatar
  • 17.8k
0 votes
1 answer
748 views

Toggle Command Button Value from Ascending to Descending

I have a command link Ascending. If I click on the link, immediately, the value of the button/link should change to Descending. <apex:commandLink action="{!Asc}" value="Ascending" reRender="block"...
SFDC FanBoy's user avatar
  • 4,094
4 votes
2 answers
5k views

Passing variable into actionFunction and then back to JS function oncomplete

Can I pass a variable into an apex:actionFunction call as follows: deleteThing(thing_id); <apex:actionFunction name="deleteThing" action="{!deleteAttachment}" reRender="none" ...
Daft's user avatar
  • 2,681
4 votes
1 answer
3k views

jQuery Validation and Action function not working on Chrome

I am using submit handler in jQuery to validate the form before it passed to the Salesforce action function for submission, which in Firefox works perfectly. Yet in Chrome, the submission gets to the ...
David Dawson's user avatar
  • 1,204
11 votes
3 answers
6k views

Order of Invocation - Controller Methods (Constructor, Getter, Action Method)

I was browsing through Visual Force Dev cookbook and was trying to understand the sequence of execution of the controller methods ( constructor, getter, action method) while invoking the action ...
KaLi's user avatar
  • 1,519
1 vote
1 answer
2k views

Using actionFunction and onclick to show a portion of the page

I'm trying to use onclick and VF actionFunction to show a portion of a page.pageblocksection is not rendering.showdetail is false on vf page I've set up an onclick like this: <apex:commandLink ...
sfdc's user avatar
  • 13.8k
6 votes
1 answer
1k views

input type color and upload file

I'm trying to allow a user to both upload a document and utilize the HTML input type="color". Then click Save and have both saved to the record. The color as a field on the record, the file as an ...
Phil B's user avatar
  • 5,046