Method GetAuditDocumentEntriesFiltered
GetAuditDocumentEntriesFiltered(String, String, String, String)
Gets audit document entries
Declaration
List<AuditDocumentContract> GetAuditDocumentEntriesFiltered(string connectionId, string documentId, string fromDate, string toDate)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | documentId | Optional: The document id filter. Default: |
System.String | fromDate | Optional: The start date filter. Date formats: yyyy-MM-ddTHH:mm:ss, yyyy-MM-dd. Default: |
System.String | toDate | Optional: The end date filter. Date formats: yyyy-MM-ddTHH:mm:ss, yyyy-MM-dd. Default: |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<AuditDocumentContract> | List of audit document entries |
Remarks
- You need "Access to scheme" access right (01002060-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
- You need "Delete Admin Audit-Document" access right (01002098-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
- You need "Read Admin Audit-Document" access right (01002097-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
Examples
POST https://YourServerName/InfoShare/Json/Audit/GetAuditDocumentEntriesFiltered
Example for a retrieving the audit document entries.{
"connectionId": "3c82780c-d086-4564-ab20-915fc2182620"
}
Response:
{
"GetAuditDocumentEntriesFilteredResult": [{
"DocumentId": "383bb987-27ad-e911-94f4-00155d051001",
"Id": 78993,
"LogDate": "2019-07-24T05:37:41",
"ModificationCount": 1,
"ModificationType": "View",
"UserId": "6b2aed24-f247-11df-8468-005056c00008",
"VersionComment": "",
"VersionNo": 1
}, {
"DocumentId": "70420164-dbbc-e911-94f5-00155d051001",
"Id": 82756,
"LogDate": "2019-08-12T08:30:16",
"ModificationCount": 1,
"ModificationType": "InitialCreate",
"UserId": "0100a003-38a7-11d8-a902-0050bf427e8f",
"VersionComment": "",
"VersionNo": 1 }]
}
Exceptions
Type | Condition |
---|---|
ServiceException | String was not recognized as a valid DateTime: {dateTimeValue}. Expected format {expectedFormat} (10059) |
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |