Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.zentien.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Every time your Salesforce org makes an outbound HTTP request — to an ERP, payment gateway, external API, or any integration — ZentienHttpCallout records the endpoint, method, status code, duration, and whether it succeeded. This data flows to the Pulse dashboard in real time.

Installation

ZentienHttpCallout is included in the Zentien package (v0.2.0+). No additional setup is needed — just update your Apex code.

One-line migration

Replace:
HttpResponse res = new Http().send(req);
With:
HttpResponse res = ZentienHttpCallout.send(req);
That’s it. ZentienHttpCallout.send() is a drop-in replacement — it accepts the same HttpRequest, returns the same HttpResponse, and re-throws any callout exceptions exactly as before. Your existing error handling is unaffected.

What it tracks

For every callout, Zentien records:
FieldDescription
EndpointThe URL called (truncated to 255 characters)
MethodGET, POST, PUT, PATCH, DELETE, etc.
Status CodeHTTP response code (e.g. 200, 404, 500)
DurationRound-trip time in milliseconds
SuccessWhether the response code indicates success
Error MessageException message if the callout threw

Example

public class SapIntegration {
    public static void syncOrder(String orderId) {
        HttpRequest req = new HttpRequest();
        req.setEndpoint('https://sap.internal.com/api/orders');
        req.setMethod('POST');
        req.setBody(JSON.serialize(new Map<String, String>{ 'orderId' => orderId }));

        // Replace new Http().send(req) with ZentienHttpCallout.send(req)
        HttpResponse res = ZentienHttpCallout.send(req);

        if (res.getStatusCode() != 200) {
            throw new CalloutException('SAP returned ' + res.getStatusCode());
        }
    }
}

Viewing callout data

Go to Pulse in the Zentien dashboard. If callout data is flowing, a Callout Monitor table appears showing recent callouts with status, duration, and endpoint.
The Pulse page will show a banner if ZentienHttpCallout has not been detected in your org yet. Update your package to v0.2.0 and add at least one ZentienHttpCallout.send() call to activate the feature.

Next step

Salesforce Pulse

See your org’s health — jobs, limits, callouts, and anomalies in one place.