PRELIMINARY INFORMATION - SUBJECT TO CHANGE
Adds an audit entry, consisting of an audit event and a first audit object.
Syntax
Smartsite SXML | Copy Code |
---|---|
T:System.Int64 audit.addentry(string objectTypeCode, string objectIdentifier, string auditTypeCode) T:System.Int64 audit.addentry(string objectTypeCode, string objectIdentifier, string auditTypeCode, any[ ] arguments) |
Parameters
Name | Data Type | Description |
---|---|---|
objectTypeCode | String | I: Object type code, for example "CONTENT_VERSIONS", as found in the table with audit object types. |
objectIdentifier | String | I: Identifier. The string must represent a guid, for example "{2F8F613F-2CFE-4BD4-9B6B-198E1D5D6CFC}". Accepted formats include an identifier without { and }, and/or without dashes. The identifier is case insensitive. |
auditTypeCode | String | I: Audit type, by means of a type code that must exist in the audit types table. |
arguments | Any[ ] | I: Arguments, or null if none. The number of arguments must match the number of arguments as expected by the format string for the this audit type. The argument must be one of the supported types, for example int or string. |
Return Value
Data Type | Description |
---|---|
T:System.Int64 | Returns the number of the created audit event. This number can be used to add audit objects to the audit event. |