To get the annotations of an audit, use the GetAnnotations
method. GetAnnotations
takes the GUID of the audit and returns a collection of AuditAnnotation
objects.
Library method name |
GetAnnotations
|
---|---|
Description | Get annotations for a single object |
Method signature |
AuditAnnotation GetAnnotations(Guid auditId)
|
Method input parameters |
auditId : GUID of the audit object. |
Return value | A list of AuditAnnotation . |
The following .NET C# code is an example of a get annotations for an object call:
IEnumerable<AuditAnnotation> annotations = client.Audits.GetAnnotations(audit.Id);
AuditAnnotation firstAnnotation = annotations.FirstOrDefault();
Console.WriteLine(firstAnnotation);
/*
{
"auditUrl": "https://win-ervotujej94/api/v2/audits/40aff6ec-ecb2-4b65-a504-0ac659756956",
"creationTime": "2020-06-05T15:58:40.407Z",
"user": "MetasysSysAgent",
"text": "TEST AUDIT ANNOTATION 02",
"signature": null,
"action": "none"
}
*/