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
Vladimir BessonovVladimir Bessonov 

Is it possible to create many records with process builder?

Hi. Everyone.

I wonder if it is possible to create many records with process builder. 

My case is I have a project config. 
Then I create a project record itself, I use a lookup field to find the available configs. 
In this configs I have numbers of records I need to create and some other data related to the records I need to create: Serial number (it will be entered later manually), supplier, supplier part  name, other descripiton, etc. 

I know it is possible to do it with Apex code, but I wanted to keep it simple - use declarative programming. 
AbhishekAbhishek (Salesforce Developers) 
Yes, you can create multiple records using Process Builder. When a process is created using Process builder while adding action there is an option in the dropdown of using apex, from there you can run your desired Class which can be used for the creation of bulk records.

Go to process builder, create a new process.

Add object -> select "Contact".
Start the process -> "When a record is created or edited"

Add Criteria
Set Criteria Name (to check for the new record)
Criteria for Executing Actions -> "Formula Evaluates to true"
Function -> Logical -> ISNEW()
Save

Immediate Action (if true)
Create record, select Fee__c -> assign values to all appropriate fields (either prefixed values or reference values from newly created contact record)

If the first condition is false

Add Another criteria ( to check if  Semester__c is changed or not)
Set Criteria Name (to check for updated field)
Criteria for Executing Actions -> "Formula Evaluates to true"
Function -> Logical -> ISCHANGED()
replace "field" with "Semester__c"
save

Immediate Action (if true)
Create record, select Fee__c -> assign values to all appropriate fields (either prefixed values of reference values from newly created contact record)


For further reference check this too,

https://www.sfdcpanther.com/create-update-records-using-process-builder-and-auto-launched-lightning-flow/

You can create and update multiple records using process builder
Here is the example:- 

https://www.packtpub.com/books/content/auto-updating-child-records-process-builder

you can add multiple things in the process builder using this example.
Hope this helps you.


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.
Vladimir BessonovVladimir Bessonov
Create several records I meant to creat 

part 1,
part 2, 
part 3, etc that will be related to the project record. Not seceral fields of the same record. 
I understand that I can trigger and execude apex class.. 
AbhishekAbhishek (Salesforce Developers) 
In that case, only Trigger is the option.

You can raise an Idea, Based on the Votes it will be implemented in the future.

Thanks.