I have a flow where I am passing a Custom Object's recordId to the flow by invoking it from a detail page button like this
This flow is invoking a Apex class with parameter
Now, can someone help me understand if the button is clicked by multiple users at the same time, is it considered as a single transaction? Is the why InvocableMethod allows only List type?
I am not able to determine if I have to query as
Inactive_Farms__c if = [Select Id, Farm_Id From Inactive_Farm__c Where Id = :iFarms assuming only one record per click
List<Inactive_Farms__c> if = [Select Id, Farm_Id From Inactive_Farm__c Where Id IN :iFarms] because multiple records will be passed?
Thanks in advance