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.

Since: 1.0

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 findByFailedApiCall(Id recordId, String serviceName, String hashParameter)Finds failed API call records matching the triggering object, service name, and request hash.
global List getAll()Retrieves all ApiIssue__c records.
global override List getFields()Returns the core fields for ApiIssue__c queries.
global SEL_ApiIssue()Constructs an ApiIssue selector.

Method Details

SEL_ApiIssue

apex
global SEL_ApiIssue()

Constructs an ApiIssue selector.

Since: 1.0

Example:

apex
SEL_ApiIssue instance = new SEL_ApiIssue();

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:

  • recordId (Id) - The Id of the triggering record
  • serviceName (String) - The name of the web service
  • hashParameter (String) - The request parameters hash to match

Returns: ApiIssue__c - List of matching failed ApiIssue__c records

Since: 1.0

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

Since: 1.0

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

Since: 1.0

Example:

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