The secondary object is used for SetRelated and RemoveRelated messages, otherwise it must be zero.
A secondary entity is a child of the primary entity. The secondary object should only be used when you want to call the plugin for an event that requires two objects, such as the message "SetRelated".
Please see here: Link