# Query trigger audit log entries

Queries the trigger audit log for entries that match the specified filter and paging parameters. The maximum allowed value for the take parameter is 100.

Endpoint: GET /api/audit/trigger/query/{entityId}
Version: v1.0
Security: OAuth2

## Path parameters:

  - `entityId` (integer)
    The identifier of the entity to filter audit records.
    Example: 12345

## Query parameters:

  - `ExecutionType` (string)
    The execution type to filter trigger logs.
    Enum: "OutOfProcess", "InProcess"

  - `Objective` (string)
    The objective of the auditing trigger to filter logs.
    Enum: "EntityDefinitionCreation", "EntityDefinitionModification", "EntityDefinitionDeletion", "EntityCreation", "EntityModification", "EntityDeletion"

  - `AssociatedId` (integer)
    The associated entity ID to filter trigger logs.
    Example: 12345

  - `ActivatedForEvent` (boolean)
    Whether the trigger was activated for the event.

  - `Id` (string)
    The unique identifier of the audit entry.

  - `EventType` (string)
    The type of event to filter audit entries.
    Enum: "Created", "Updated", "Deleted", "Enabled", "Disabled", "Executed", "PackageExported", "PackageImported"

  - `Severity` (string)
    The severity level to filter audit entries.
    Enum: "Debug", "Warning", "Info", "Error", "Fatal"

  - `TargetId` (integer)
    The target entity identifier related to the audit entry.
    Example: 12345

  - `TargetIdentifier` (string)
    The string identifier of the target entity.
    Example: "Asset-12345"

  - `Timestamp` (string)
    The timestamp to filter audit entries.
    Example: "2025-09-16"

  - `UserId` (integer)
    The user identifier associated with the audit entry.
    Example: 67890

  - `ScrollId` (string)
    The ID of the scroll session to get the next results for.
    Example: "scroll-session-abc123"

  - `ScrollTime` (string)
    The time to keep the scroll session active.
    Example: "00:05:00"

  - `FullText` (string)
    The full-text search term to filter audit records.
    Example: "user login"

  - `Raw` (string)
    The raw query string for advanced filtering.

  - `EntityId` (integer)
    The identifier of the entity to filter audit records.
    Example: 12345

  - `From` (string)
    The start date of the range filter.
    Example: "2025-01-01"

  - `To` (string)
    The end date of the range filter.
    Example: "2025-01-31"

  - `Skip` (integer)
    The number of items to skip for pagination. Null if negative.

  - `Take` (integer)
    The number of items to take for pagination. Null if negative.
    Example: 25

  - `Sort` (string)
    The field name to sort by.
    Example: "timestamp"

  - `Order` (string)
    The sort order (ascending or descending).
    Enum: "ascending", "descending"

  - `Ascending` (boolean)
    Whether the sort order is ascending.

  - `Range.Begin` (string)

  - `Range.End` (string)

## Response 200 fields (application/json):

  - `items` (array,null)
    Gets or sets the list of items.

  - `items.execution_type` (string)
    Specifies the type of execution for an action.
    Enum: "OutOfProcess", "InProcess"

  - `items.objective` (string)
    Collection of all available objectives for M triggers for auditing purposes
    Enum: "EntityDefinitionCreation", "EntityDefinitionModification", "EntityDefinitionDeletion", "EntityCreation", "EntityModification", "EntityDeletion"

  - `items.objective_description` (string,null)

  - `items.activated` (boolean)

  - `items.probing_time` (number)

  - `items.io_time` (number)

  - `items.io_time_shared_among_triggers` (integer,null)

  - `items.id` (string)

  - `items.audit_type` (string)
    Represents the type of audit event. IMPORTANT: Do not change the number of existing entries or their order because this will break compatibility with older versions.
    Enum: "Trigger", "Action", "Scripting", "Business", "Raw", "Edge", "PublicLink", "RawOperational", "DataPackageExport", "DataPackageImport"

  - `items.event_type` (string)
    Represents the type of audit event. IMPORTANT: Do not change the number of existing entries because this will break compatibility with older versions.
    Enum: "Created", "Updated", "Deleted", "Enabled", "Disabled", "Executed", "PackageExported", "PackageImported"

  - `items.severity` (string)
    Represents the severity level for audit events. IMPORTANT: Do not change the number of existing entries. Doing so will break compatibility with older versions.
    Enum: "Debug", "Warning", "Info", "Error", "Fatal"

  - `items.target_definition` (string,null)

  - `items.target_id` (integer,null)

  - `items.target_identifier` (string,null)

  - `items.timestamp` (string)

  - `items.user_id` (integer,null)

  - `items.self` (object)
    Represents a link to a resource.

  - `items.self.href` (string,null)
    Gets or sets the URI that points to the resource this link refers to.

  - `items.self.filename_properties` (array,null)
    Gets or sets the URI that points to the resource this link refers to.

  - `items.self.title` (string,null)
    Gets or sets the title that describes this link.

  - `items.self.templated` (boolean)
    Gets or sets a value indicating whether the contained URI is a template.

  - `total_items` (integer,null)
    Gets or sets the total number of items.

  - `returned_items` (integer,null)
    Gets or sets the number of returned items.

  - `offset` (integer,null)
    Gets or sets the offset of the items.

  - `next` (object)
    Represents a link to a resource.

  - `next.href` (string,null)
    Gets or sets the URI that points to the resource this link refers to.

  - `next.filename_properties` (array,null)
    Gets or sets the URI that points to the resource this link refers to.

  - `next.title` (string,null)
    Gets or sets the title that describes this link.

  - `next.templated` (boolean)
    Gets or sets a value indicating whether the contained URI is a template.

  - `previous` (object)
    Represents a link to a resource.

  - `previous.href` (string,null)
    Gets or sets the URI that points to the resource this link refers to.

  - `previous.filename_properties` (array,null)
    Gets or sets the URI that points to the resource this link refers to.

  - `previous.title` (string,null)
    Gets or sets the title that describes this link.

  - `previous.templated` (boolean)
    Gets or sets a value indicating whether the contained URI is a template.

  - `identifier` (string,null)
    Gets or sets the identifier of the resource.

  - `self` (object)
    Represents a link to a resource.

  - `self.href` (string,null)
    Gets or sets the URI that points to the resource this link refers to.

  - `self.filename_properties` (array,null)
    Gets or sets the URI that points to the resource this link refers to.

  - `self.title` (string,null)
    Gets or sets the title that describes this link.

  - `self.templated` (boolean)
    Gets or sets a value indicating whether the contained URI is a template.


## Response 401 fields
