You need to sign in to do that
Don't have an account?
Malakondaiah
Automatically created the 2 child records when parent(Account) record is created?
Hi All,
Automatically created the 2 child records when parent(Account) record is created? Best approach (Process builder or Apex trigger)?
Thanks,
Malakondaiah
Automatically created the 2 child records when parent(Account) record is created? Best approach (Process builder or Apex trigger)?
Thanks,
Malakondaiah
You should use a Trigger when you cannot do what you want to do with the declarative features of Salesforce.
So the answer is process builder.
Thanks
Mukesh Kumar
I have test below code my side , Please use :-
Please MARK AS BEST ANSWER!!!!!!
Regards
Mueksh
A Process Builder will also do the work and will be a better option.
You just have to create an action that would create a new record and reference the account id in the accountId field.
Thanks
Ajay
I am doubt on automatically create 2 child records ,when parent record is created using process builder(more than 2 objects possible using process builder).
Thanks,
Malakondaiah
Yes we can do it via Process Builder.
We need to just create two actions as in the pic below
a1 and a2 are two actions which will create contacts
Set action as:-
Please mark it as best if it helps.
Thanks
Ajay
Thanks for Your Replay. I am not talking about the actions.
My question : is it possible to do 2 or more child objects when parent/other record created using process builder.
Thanks,
Malakondaiah
So do you want two different object records to be created whwn a account record is created?
Yes, you can do it, just change the object in the action.