Get audit for an object - Metasys - LIT-12013522 - Software Application - Basic Services client library for .NET (and COM) - Metasys API - 4.2

Metasys REST Client for .NET and COM Developer Guide

Product name
Basic Services client library for .NET (and COM)
Metasys API
Document type
API Reference Guide
Document number
Revision date
English (United States)

To get the audits of a specific object, use the GetForObject method. Use the GUID of the parent object as input.

For an example, see the following .NET C# code:

Audit singleAudit = client.Audits.FindById(audit.Id);
PagedResult<Audit> objectAudits = client.Audits.GetForObject(objectId, auditFilter);
Table 1. Get audit for an object .NET signature
Library method name GetForObject
Description Get an audit for a single object
Method signature PagedResult<Audit> GetForObject(Guid objectId, AuditFilter auditFilter);
Method input parameters
  • objectId: GUID of the object that the method targets.
  • auditFilter: object used by the method to specify the criteria to filter the target audits.
Return value A PagedResult of Audit.