function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
degmodegmo 

Pass record collection variable from a Flow to Apex class

public class flowHandler {

@invocablemethod()
public static void processRecords(List<custom> incomingRecs) {

}

}

 
Best Answer chosen by degmo
ANUTEJANUTEJ (Salesforce Developers) 
Hi Degmo,

>> https://salesforce.stackexchange.com/questions/196866/passing-a-list-of-records-to-an-invocable-method

>> https://developer.salesforce.com/forums/?id=906F00000005GQdIAM

The above two had similar implementation and they were trying to use list of list of object like List<List<Leads>> to pass list of records can you try it once.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.