iNotes Help Needed: Where to get a populated s_MailParentUNID

I have written an agent that needs to access the value in the s_MailParentUNID field from the DocumentContext, in which subform or form should this agent be set to run so that the field above is populated.

Thanx