Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Pass multiple, strongly typed parameters from Process Builder to Apex #1
public class ProcessHandlerShowAccounts {
public class AccountParameter{
public Id accountId;
public String name;
description='Reconstitue the Accounts being inserted based on the variables passed from Process Builder'
public static void handleNewAccounts(AccountParameter[] accountParameters) {
Account[] accounts = new Account[]{};
for(AccountParameter a : accountParameters) accounts.add(new Account(Id=a.accountId,;
system.debug('****** accounts: '+accounts);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.