+ Start a Discussion

New custom object record when a new account record is created

Good Morning, I currently have a custom object with the Account tab as the Master detail. The custom object has 7 record types. I need to have a new record created for each record type when a new account is converted from a lead. The Account has its own record type also. I assume this needs to be a trigger or can it be a work flow rule? Thank you



A trigger is probably the simplest and quickest way. The code might be something like


trigger myTrigger on Account(after insert){



[perform logic] 






Hi Wes, Thank you for your reply, I had hoped that it was not a trigger because I'm new to coding,

But thank you I will work on it