Skip to content

SEL_ApiIssue

Class · Group: Web Services

apex
global inherited sharing class SEL_ApiIssue extends SEL_Base

Extends: SEL_Base

Selector for the ApiIssue__c SObject. Provides query methods for retrieving and filtering failed API calls, including deduplication via request parameter hash and status-based filtering.

Example

apex
List<ApiIssue__c> issues = new SEL_ApiIssue().findUnresolvedByService('API_SendEmail');
List<ApiIssue__c> inbound = new SEL_ApiIssue().findUnresolvedInbound();
ApiIssue__c issue = (ApiIssue__c)new SEL_ApiIssue().findById(issueId);

See Also: SEL_Base


Methods

MethodDescription
global List<ApiIssue__c> findByFailedApiCall(Id recordId, String serviceName, String hashParameter)Finds failed API call records matching the triggering object, service name, and request hash.
global List<ApiIssue__c> getAll()Retrieves all ApiIssue__c records.
global override List<SObjectField> getFields()Returns the core fields for ApiIssue__c queries.

findByFailedApiCall

apex
global List<ApiIssue__c> findByFailedApiCall(Id recordId, String serviceName, String hashParameter)

Finds failed API call records matching the triggering object, service name, and request hash.

Parameters

ParameterTypeDescription
recordIdIdThe Id of the triggering record
serviceNameStringThe name of the web service
hashParameterStringThe request parameters hash to match

Returns ApiIssue__c — List of matching failed ApiIssue__c records

getAll

apex
global List<ApiIssue__c> getAll()

Retrieves all ApiIssue__c records. Only executes in test context to prevent full-table scans in production.

Returns ApiIssue__c — List of all ApiIssue__c records in test context, empty list in production

Example

apex
List<ApiIssue__c> result = instance.getAll();

getFields

apex
global override List<SObjectField> getFields()

Returns the core fields for ApiIssue__c queries.

Returns SObjectField — List of ApiIssue__c SObjectField tokens

Example

apex
List<SObjectField> result = instance.getFields();

Constructors

ConstructorDescription
global SEL_ApiIssue()Constructs an ApiIssue selector.

SEL_ApiIssue()

apex
global SEL_ApiIssue()

Constructs an ApiIssue selector.

Example

apex
SEL_ApiIssue instance = new SEL_ApiIssue();