Returns task audit information from a given range of audit records that meet the selection criteria. Criteria include task, date range, application server, and user. Audit information is returned in arrays that have a one-to-one correspondence.
To return audit information for all tasks, either set the vbAllTasks argument to FALSE or use EnumAuditTasks. |
The lStartRecord and lEndRecord arguments specify the starting and ending indexes of the range of records, and the pvarlTotalRecords argument returns the total number of records that match the selection criteria. To iterate through all the matching records, in the first call to EnumAuditTasks2 pass 0 to lStartRecord, then use the count returned by pvarlTotalRecords to loop through the remaining records.
The number of matching records can change after you call EnumAuditTasks2. For example, a user might delete some or all of the audit records. |
<HFMwSystemInfo>.EnumAuditTasks2 dStartTime, dEndTime, vbAllServers, bstrServer, vbAllUsers, bstrActivityUserName, vbAllTasks, lActivityTaskID, lStartRecord, lEndRecord, pvaravarActivityUserID, pvaravarActivityUserName, pvaravarActivitySessionID, pvaravarServerName, pvaravarActivityCode, pvaravarStartTime, pvaravarEndTime, pvaravarDescription, pvaravarModuleNames, pvarlTotalRecords
The starting date and time of the date range. Pass a Double that can be cast to a Date format. | |
The ending date and time of the date range. Pass a Double that can be cast to a Date format. | |
A flag that determines whether audit information for all application servers is returned. Pass TRUE for all application servers, FALSE to specify an application server with the bstrServer argument. | |
The name of the application server for which to return audit information. This argument is used only if the vbAllServers argument is set to FALSE. | |
A flag that determines whether audit information for all users is returned. Pass TRUE for all users, FALSE to specify a user with the bstrActivityUserName argument. | |
The username of the user for whom to return audit information. This argument is used only if the vbAllUsers argument is set to FALSE. | |
Specifies whether audit information for all tasks or a given task is returned. Pass TRUE for all tasks, FALSE to specify a task with the lActivityTaskID argument. | |
The ID of the task for which to return audit information. This argument is used only if the vbAllTasks argument is set to FALSE. Task IDs are represented by the HFMConstants type library constants listed in User Activity Constants. | |
The index of the first record in the range of records to retrieve. This is a zero-based index. | |
The index of the last record in the range of records to retrieve. This is a zero-based index. | |
Returns an array containing the activity user IDs for the users who performed the tasks. The corresponding item in the array returned by the pvaravarActivityUserName argument contains the username associated with an activity user ID. | |
Returns an array containing the usernames of the users who performed the tasks. | |
Returns an array containing the internal IDs of the sessions in which the tasks occurred. A user can have multiple sessions. | |
Returns an array containing the names of the application servers on which the tasks occurred. | |
Returns an array containing the IDs of the tasks performed by the users. Valid values are represented by the HFMConstants type library constants listed in User Activity Constants. | |
Returns an array containing the starting times of the tasks. Array items are formatted as Doubles that can be cast to the Date format. | |
Returns an array containing the ending times of the tasks. Array items are formatted as Doubles that can be cast to the Date format. | |
Returns an array containing the names of the tasks’ modules. | |
Returns the total number of audit records in the database that meet the filtering criteria. |