Skip to main content

HTTP Callouts in Salesforce Flow: When Apex Is Optional

About Us
Published by yuliya.dzemidchuk
30 January 2026

HTTP Callouts in Salesforce Flow: A Declarative Alternative to Apex-Based Integrations

 

Introduction

Integrations in Salesforce are traditionally implemented through Apex. A Flow collects data, calls an Apex method, Apex builds an HTTP request, sends it to an external system, parses the response, and returns the result back to Flow. 

The problem is that many Apex integration classes contain little or no business logic. Their main responsibility is request construction, response parsing, and data translation between Flow and an external API.

Salesforce HTTP Callouts in Flow introduce a different model.

A Flow can define and invoke an external REST call directly, without using a custom Apex controller. The Flow describes the endpoint, request fields, and response fields declaratively.

This article looks at how HTTP Callouts in Flow work and how they compare to the classic Apex-based approach.



Why HTTP Callouts in Flow?

In the classic Salesforce architecture, external calls are implemented through Apex. From the perspective of a Flow, this usually looks simple: call an Apex action and receive a response. All integration details are hidden behind that method.

Under the hood, Apex is responsible for the following actions:

  • Receiving parameters from Flow
  • Constructing an HTTP request
  • Setting headers and authentication context
  • Sending the callout
  • Parsing the response
  • Returning a structured result

It means that every integration, even a very simple one, requires custom Apex.The Flow itself remains unaware of which fields are sent, which fields are returned, and how the endpoint is structured. A Flow cannot fully describe its own behavior. Part of the process exists visually in Flow Builder, and another part exists implicitly in Apex code.

HTTP Callouts in Flow allow it to:

  • Define which endpoint is called
  • Specify the HTTP method
  • Describe request fields
  • Describe response fields

This is especially valuable in scenarios where the integration is simple request/response and no complex transformations are required.

 

Setup Overview

Using HTTP Callouts in Flow requires three core elements:

  1. A credential configuration that defines how Salesforce authenticates to the external system.
  2. A named endpoint that represents the target system.
  3. An HTTP Callout Action created inside Flow Builder.

These elements are platform infrastructure. They are created once and reused across Flows.

So the workflow looks like this:

  • Create or select a Named Credential that points to the external system.

     

Illustration. Named Credential exampleNamed Credential example

  • In Flow Builder, add an Action and choose “Create HTTP Callout”.
  • Define HTTP method and relative path.

     

Illustration. Create new HTTP callout exampleCreate new HTTP callout example

  • Define request and response fields.

     

Illustration. Request Body assignment exampleRequest Body assignment example

No Apex class is created in this process. The result is a reusable Flow action that encapsulates the external call.

 

Conclusion

HTTP Callouts in Flow provide a practical alternative to Apex-based integrations in scenarios where the main requirement is a simple request/response interaction with an external REST API.

Traditionally, even basic integrations required a custom Apex layer responsible for constructing HTTP requests, sending them, parsing responses, and exposing results to Flow. In many cases, this Apex code contained little business logic and existed primarily as a transport layer.

With HTTP Callouts in Flow, this layer becomes optional. A Flow can define the endpoint, request structure, and response structure declaratively, and invoke the external system directly. This makes the integration contract explicit and visible inside the automation itself, reducing the amount of custom infrastructure code that needs to be written and maintained.


Hanna Pestava
https://www.linkedin.com/in/hannapestava/
image
Expertise
Question to the expert
image

We have available resources to start working on your project within 5 business days

1 UX Designer

image

1 Admin

image

2 QA engineers

image

1 Consultant

image
Related Articles
All articles
image
Is Salesforce Winning the Public Sector Race?
An analysis of Salesforce's rapid expansion into the U.S. public sector, tracing its path from cautious early government licensing deals in the 2010s through the launch of Government Cloud in 2012, its pivotal role in COVID-19 vaccine rollouts, and its 2025–2026 push into military and intelligence work via Agentforce and Missionforce. The piece covers major 2026 contracts — including a $5.6 billion Army deal, a $1.6 billion VA agreement, and Pentagon Impact Level 5 authorization — alongside real-world case studies like California's REAL ID processing and the UK's NHS back-office operations. It also examines the structural obstacles still facing Salesforce and other vendors in government tech: legacy IT systems decades old, outdated federal procurement rules, budget constraints, and organizational caution around AI adoption, plus the competitive pressure from Palantir, Microsoft, and Oracle in the race for public sector AI spending.
28 August 2026
image
Why Your Salesforce Flows Are Agentforce's Biggest Problem
This article argues that the most underestimated risk in Agentforce deployments isn't data quality — it's the automation layer: years of overlapping Flows, Process Builder processes, Apex triggers, and managed package logic that no one has reviewed end-to-end. It explains why AI agents inherit automation complexity without the tribal knowledge human admins carry, why technical debt only becomes visible after an agent hits it in production, and why a clean demo is no indicator of production readiness. The article closes with a concrete, tool-by-tool inventory approach using Flow Trigger Explorer, Salesforce Optimizer, Setup Audit Trail, Apex Debug Logs, Agent Builder, and Health Check — scoped to the specific processes the agent will actually use rather than the whole org.
23 July 2026
image
How to Wire Multiple Salesforce Projects in One Org Without Breaking Everything
This article maps the real integration patterns that emerge when multiple Salesforce projects — both managed packages and unpackaged code — share a single org. It covers four concrete patterns: attaching custom triggers to package-owned objects, calling global members exposed by managed packages, writing directly into another project's objects, and runtime-guarded reads of package data. It then addresses access control for authenticated and guest users, including the Master-Detail wall and the without sharing elevation pattern. The piece closes with eight concrete risks (compile-time dependencies that block uninstall, upgrade coupling, silent cascade failures, access invisible to admins) and six actionable recommendations for keeping cross-project coupling manageable.
08 July 2026