4 respostas
Thanks AshishI'm completely new to writing triggers. Would you mind checking if I'm along the right lines below?I guess it's going to be a before insert trigger on the junction object.Then I'll need to get all of the records of the junction object using a SOQL query and put them into a list/map?I'll then need to write some kind of logic. (can you help with this please?)Put the records back into a list and insert them into the database?