Skip to main content

#Invocable Method0 discutindo

[▶️]🔴🔥🎬 Call Apex Invocable Method From Salesforce Flow - Part 1 

 

Learn how to call Apex methods from Salesforce Flow in this two-part series! This first video covers a simple use case: passing a single input type to Apex and receiving single output type back into your Flow. Perfect for beginners! 

 

🎬 https://youtu.be/Gvfvgrs7WDw 

📒 https://sudipta-deb.in/2025/01/call-apex-invocable-method-from-salesforce-flow-part-i.html

 

 

#Apex #Flow #Invocable Method #Invocable Actions

 

@The Blog Group

 

[▶️]🔴🔥🎬 Call Apex Invocable Method From Salesforce Flow - Part 1 Learn how to call Apex methods from Salesforce Flow in this two-part series! This first video covers a simple use case: passing a si

 

 

0/9000

Hi Everyone!

 

I have a scheduled flow that invokes the Send HTML apex callout from unofficialSF to send emails out when something is not right with the data entered. When the flow runs to process 10 records at a given time and the emails are supposed to be sent only for 3 among 10 of them, the flow fails with this exception - The number of results does not match the number of interviews that were executed in a single bulk execution request.

 

Any suggestions how to fix this? The invocable method to send the email is  bulkfied - the input is a list of request object and output is a list of response object

2 comentários
0/9000

I'm calling an apex class from a screen flow that would return me list of account records. I want to display this list of records and be able to select those records individually in screen flow. Is there a screen flow component that I can use to accomplish this? Based on the records that I selected I want to create records in a related object later in the flow.Any suggestions on this please.

 

#Flow Screen Element #Flow Screen Component #Flow Builder #Screen Flow #Apex Class #Invocable Method

1 resposta
  1. 3 de nov. de 2021, 11:28

    Hi Sudhir,

     

    It sounds like you would need a picklist component, or a multi-picklist if the user is able to select more than one record.  In order to populate that component, it looks like you would need to store the returned records in a "Choice" resource, then use that resource to populate the picklist options for the user to select. 

0/9000
0/9000

I am done setting up the Mass Action Scheduler. I have a simple class with an invocable method that I would like to invoke. However, on selecting the source type as List view and Action Type as Apex, I don't see any actions. I have logged out and logged in multiple times but still can't see the options under Actions.

 

Has anyone tried this before?

 

Thank you,

Haemen

0/9000

Has anyone had success in calling an apex class from Process Builder? I can access my @InvocableMethod but I can't access the @InvocableVariables to set in the actual process.

2 comentários
  1. 16 de out. de 2016, 20:59
    If you post a little bit of your class maybe we can help. Invocable been Production for while now so many, including me, been using it successfully. Are you passing in Sobject or Sobject Collection variables?
0/9000

I see questions on the Salesforce community forums quite frequently about concatenating a field value across all child records and dumping it into a field on the parent record. The most common use case is concatenating a picklist or text field value for all child records and displaying it on the parent record so that a user can get a bird's eye view of important data on the master record.

 

I looked into various tools and ended up using Process Builder and Invocable Method(Apex) to accomplish this requirement since that seemed to be the most elegant solution. If anyone else has dealt with it in a different fashion, please feel free to share in the comments below.

 

Hope it helps!

@The Blog Group 

Using Process Builder and Apex (Invocable Method) To Concatenate Child Record/(s) Information Onto Parent record

0/9000