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
Nikita Yadav 17Nikita Yadav 17 

Create new child record when parent is created or updated using flow

Hello Folks,

I am very new to the flow.

I have a requirement to create new history record i.e. child record everytime whenever parent record is created or updated(Flow will trigger when record is created or updated on parent object).This child record will have same values and fields as parent record.

I am stuck to implement this.Please help me !!

Thank u.
Best Answer chosen by Nikita Yadav 17
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Nikita,

You can create the  simple record trigger flow on the respective object and in that drag a create an record action and update all the required field as below.
Start Element:

User-added image

Create history:

User-added image
Entire flow

User-added image
If this solution helps, Please mark it as best answer.

Thanks 
 

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Nikita,

What should the history record have. The old field values or new field values?

Thanks,
 
Nikita Yadav 17Nikita Yadav 17
@Sai ythank u for replay,

History record will have old values
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Nikita,

You can create the  simple record trigger flow on the respective object and in that drag a create an record action and update all the required field as below.
Start Element:

User-added image

Create history:

User-added image
Entire flow

User-added image
If this solution helps, Please mark it as best answer.

Thanks 
 
This was selected as the best answer