Ashley, thanks for clearing that up.
The problem with potentially using on OnCreated trigger is that I already have a OnCreated Family trigger that handles normal creation of Object A and Object B (both of which belong to this family). When one of those objects is created in a subevent, I need to set up specific variables up in Object A and Object B to certain values.
Okay, I have an possible solution. I could create some global variables, such as:
CreatedBy, Var1_Value, Var2_Value
Then in code:
Line 01 : EVENT 1
Line 02 : -- Sub Event A
Line 03 : -- -- CreatedBy = "SubEventA";
Line 04 : -- -- Var1_Value = "ObjA_CustomValue1";
Line 05 : -- -- Var2_Value = "ObjA_CustomValue2";
Line 06 : -- -- Create Object A
Line 07 : -- -- -- Do some stuff
Line 08 : -- -- Var1_Value = "ObjB_CustomValue1";
Line 09 : -- -- Var2_Value = "ObjB_CustomValue2";
Line 10 : -- -- Create Object B
Line 11 : -- -- -- Do some stuff
Line 12 : -- -- CreatedBy = "";
Line 100: On Family Created Trigger
Line 101: -- if CreatedBy === 'SubEventA'
Line 102: -- -- Family.Var1 == Var1_Value
Line 103: -- -- Family.Var2 == Var2_Value
Line 104: -- else
Line 105: -- -- // Normal initialization for Family properties
Does that seem like a good solution?