SEL_ApiIssue
Class · Group: Web Services
global inherited sharing class SEL_ApiIssue extends SEL_BaseExtends: 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
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
| Method | Description |
|---|---|
| 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
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
| Parameter | Type | Description |
|---|---|---|
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
getAll
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
List<ApiIssue__c> result = instance.getAll();getFields
global override List<SObjectField> getFields()Returns the core fields for ApiIssue__c queries.
Returns SObjectField — List of ApiIssue__c SObjectField tokens
Example
List<SObjectField> result = instance.getFields();Constructors
| Constructor | Description |
|---|---|
| global SEL_ApiIssue() | Constructs an ApiIssue selector. |
SEL_ApiIssue()
global SEL_ApiIssue()Constructs an ApiIssue selector.
Example
SEL_ApiIssue instance = new SEL_ApiIssue();