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.
Since: 1.0
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 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
global SEL_ApiIssue()Constructs an ApiIssue selector.
Since: 1.0
Example:
SEL_ApiIssue instance = new SEL_ApiIssue();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:
recordId(Id) - The Id of the triggering recordserviceName(String) - The name of the web servicehashParameter(String) - The request parameters hash to match
Returns: ApiIssue__c - List of matching failed ApiIssue__c records
Since: 1.0
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
Since: 1.0
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
Since: 1.0
Example:
List<SObjectField> result = instance.getFields();