Forum Discussion

jwagner's avatar
jwagner
New Contributor III
11 months ago
Solved

How to access journal name and the user who triggered the Journal Event Handler

Hello OneStream Community,  I am wondering if anyone knows of a way to access the journal name and the user who triggered an action on a journal through a Journal Event Handler Business Rule.   ...
  • MarcusH's avatar
    11 months ago

    The GolfStream application has examples of getting journal information. Here is a snippet:

    Dim journalID as Guid = CType(args.Inputs(0), Guid)
    Dim journal as JournalEx = BRApi.Journals.Metadata.GetJournalOrTemplate(si, journalID)						
    

    From there you can get the journal name like this:

    Dim jourName as String = journal.Header.Header.Name

    It also has examples of how to get user information if si.UserName is not what you want.