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.
Below are my questions,
if 10 account records are inserted "at the same time", Process builder process is called 10 times, separately for each record that is being inserted. or only once ?
if process has apex action and if 10 records are inserted at the same time, is the apex action called 10 times separately or only once for all 10 records ?
Process builder calls apex action method which takes ID as the parameter. can I write invocable method that takes ID as the parameter instead of List ? I saw some examples where invocable methods are taking List or List as parameter. Is it possible that apex action invoked from process builder is called for multiple records at the same time ?
Any insight into process builder working would be very helpful.