Professional Services Automation Apex API Developer Reference

pse.AppLogQueryContext

global with sharing class AppLogQueryContext

A structure containing the query parameters for retrieving app logs.

Properties

Name Type Description
fields List<SObjectField> The SObjectField tokens for the fields to return in the query.
levels List<Integer> An optional list of levels to filter logs by. When specified, only logs with one of these levels are returned.
category String An optional category for filtering logs. When specified, only logs with this category are returned.
createdDateFrom Datetime An optional datetime threshold. When specified, only logs created on or after this datetime are returned.
createdDateTo Datetime An optional datetime threshold. When specified, only logs created on or before this datetime are returned.
searchValue String An optional search string. When specified, records are filtered to include only those where any of the searchFields contain this value.
searchFields List<SObjectField> The fields to search against when the searchValue is provided. Each field is matched using a LIKE comparison.
orderBy List<pse.AppLogQueryContext.OrderByClause> An optional list of order-by clauses applied in the given order.
limitCount Integer The maximum number of records to return.
afterId Id When specified, only records with an ID greater than this value are returned.
beforeId Id When specified, only records with an ID less than this value are returned.

Methods

AppLogQueryContext

global AppLogQueryContext()

pse.AppLogQueryContext.OrderByClause

global with sharing class OrderByClause

Represents an ORDER BY expression with a field and sort direction.

Properties

Name Type Description
field SObjectField The field to order by.
descending Boolean When true, results are sorted in descending order for this field. Defaults to ascending when null or false.

Methods

OrderByClause

global OrderByClause()

© Copyright 2009–2026 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.