Executes multiple HTTP requests in parallel or sequentially
Array of Axios request configurations to be executed
If true, requests are executed sequentially and will fail if any request fails. If false, requests are executed in parallel and failures are filtered out.
Promise resolving to an array of successful responses of type T
When all requests fail or dependent requests have a failure https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all
Optionaloptions: RequestOptionsMakes a POST request to a codeunit endpoint with optional payload and request options
The codeunit endpoint URL
Optionalpayload: anyOptional request payload/body data
Optionaloptions: RequestOptionsOptional request configuration options
Promise that resolves with the response data
Optionalpayload: anyOptionaloptions: RequestOptionsCreates an OData filter query string from the provided parameters
An object containing key-value pairs to be converted into filter conditions
An object with the '$filter' property containing the generated OData filter string, or undefined if no valid parameters
OptionalqueryParams: Record<string, any>Optionaloptions: RequestOptionsOptionalpayload: anyOptionaloptions: RequestOptionsOptionalpayload: anyOptionaloptions: RequestOptionsOptionalpayload: anyOptionaloptions: RequestOptions
A class that handles HTTP transport operations with caching, rate limiting, and authentication capabilities.
Transport
Method
get - Performs GET requests with optional caching
Method
post - Performs POST requests
Method
patch - Performs PATCH requests with primary key handling
Method
put - Performs PUT requests with primary key handling
Method
delete - Performs DELETE requests with primary key handling
Method
cu - Performs codeunit requests
Method
batch - Executes multiple requests in parallel or sequentially
Method
filter - Creates OData filter query strings
Method
clearCache - Clears cache for specific endpoint
Method
clearAllCaches - Clears all cached data
Example
Throws
When a request fails
Throws
When rate limit is exceeded
Throws
When request times out