You need to sign in to do that
Don't have an account?

How to write trigger to create junction object record, for instance
My requirment is - Junction Object (Junction1__c) record should get created when user create new record on "Account"/"Location" object
Data model -
Account Obj
M_number__c field
Location object
M_number__c field
Junction1 Object
Account__c (M-D Rel with Account)
location__c (M-D rel with location)
When user create new recrod on Account Or Location object, it should automatically create new Rec on Junction Obj
you have to write the trigger both Account and location becouse when you create Recode anywhere(Account/Location) Junction Object Recode shuold be Craeted.
Thanks Bablu