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

Brand
Metasys
Product name
Basic Services client library for .NET (and COM)
Metasys API
Document type
API Reference Guide
Document number
LIT-12013522
Version
4.2
Revision date
2021-04-07
Language
English

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.