If you’ve ever dealt with Flow-based integration in the past, you might’ve heard terms like External Object and External Service in Salesforce thrown about a lot, or even conflated.

Both the External Object and External Services let us expedite operations to third-party services.

Here a quick review of some taxonomy:

External Objects:

They’re similar to Custom Objects, except they map to data that’s stored outside your Salesforce Org from within the CRM. Every external object depends on an external data source definition to link to external databases.

External Service:

This is a powerful administrative tool for no Code API usage. In the coming sections, we’ve used External Services to connect to a service of your choice and invoke methods based on the external source via Flows.

Oftentimes, the idea of API deployment conjures complex, code-heavy implementations.

But Salesforce’s External Services let even Accidental Admins use no-code API solutions to configure APIs with schemas.

What even is a schema?

Broadly, it’s a documented structure of services and methods that we can leverage. More notably:

  • A Schema definition is human-readable, structured data.
  • It’s comprised of inputs and output types you can include in the calls, or requests, that an Org makes to the external service.
  • It also holds endpoint information and authentication parameters for REST-based API web services.
  • Schema formats allow External Services to process the data so it can generate Apex actions.

(Apex actions are what we later use for I/O in Flows).

Configure External Service :

Schema considerations to use External Service-generated Apex Class through Flows

  1. There’s a 100,000 character maximum limit.
  2. Only supported methods justify inclusion.
  3. Parameters must be named.
  4. You can’t use nested or complex Objects as inputs or outputs in your service.
  5. Every property must be assigned a value.
  6. Header and form parameters aren’t supported.
  7. Security settings from the schema aren’t supported.
  8. Supported input and output type in your service(Boolean, integer, double, string, datetime)
  9. We can use GET, PATCH, PUT, POST, and DELETE methods to query a schema.

Note: Before we register and use External Services, we’ll need to provide a schema that describes the services and methods, and meets the above specifications.

Schema example: https://th-external-services.herokuapp.com/accounts/schema

Purpose: Use External Services to connect to a service of your choice, invoke methods based on the external source via a flow, and import(Swagger or Interagent-based API) data from the service into Salesforce Service.

A general sequence of steps for configuration...

  1. A 3rd party (External web service provider) shares it’s rest based schema specifications.
  2. Then, a schema definition is created to describe the API.
  3. Next, named credentials are created to authenticate to the services endpoints
  4. The External Service is registered using the named credentials and schema definition. The schema needs to be complete and JSON compliant.
  5. External Services import the definitions into Org and generates Apex Actions that are made available in a Lightning Flow.

Thereon, we can use Apex Actions from within Flows, and every time a Flow executes, an External Service sends the callout and return based on schema definition.

… and walk-through of these steps as followed by us.

  1. First, we’ll need to create a Named Credential to authorize the two systems.

As we know already, a schema consists of the endpoint information and authentication parameters for the REST-based API web services. Likewise, we’ll use these in our named credentials.

Caution :

Be sure that you have the Interagent hyper-schema or OpenAPI version 2.0 endpoint information for the service that you’re registering before setting up a named credential.

Go to

Named Credential 🡪 New

Then, enter values for Label, Name, and the “URL to your External web service provider service endpoint that needs to be accessed”.

2. Since External Service will be calling our external services from within a Flow you’ll also need to register the callout endpoint to a Remote Site Setting.

3. Now that we’ve set up all required authentications and registration we’ll move to add External Service from Salesforce

  • Switch to Lightning and click Add an External Service.

Enter a service name( description optional).

  1. Choose a named credential.
  2. Enter a schema URL path, or alternatively, provide a complete schema.
  • Any schema URL path you enter must begin with a forward slash or ‘/’ and be a relative path.

For example: /accountSchema.json.

And again, the schema you provide must be complete and JSON-compliant.

Click Next and then Done.

Result:

A list of available Apex actions with input and output gets displayed.

Also, we can find these generated Apex Actions in the Flow Toolbox.

Finally, it’s time to test our external services apex Actions using Flows

Let’s jump into the Flow Builder to see this in action:

  1. First, go to

Setup 🡪 Flows 🡪 New Flow

Select Screen Flow and click Create.

 2. Based on your requirements, we can create Flow Logic.

And usually, we’ll set up a Salesforce Org(create field) to display results once the callout routine finishes. We then add a Screen Component from the toolbox in Flow Builder to get input from the user as per our schema definition.

To do this, from the toolbox, select and drag Apex Action to the screen.

a. Change Filter Type to External Services to see external services in action.

Apex Actions are the methods pertaining to our service provider, that we can use in a Flow to fish out information.

So, select the method that was described and needs to be used from the External Service Wizard.

b. As depicted here in this trial, set parameters for method invocation by Flow variables if needed.

c. Once you’re finished configuring the Flow, it should look as follows:

d. If there are no alerts in the Debug, it means you’ve just made a successful callout to external service.

Summary

Even with all its flexibility and features of External Services, there are still quite a few key benefits to using Enhanced External Services over them. For example, Enhanced External Services can handle more complex OpenAPI 2.0 schema, nested object types, and send parameters as headers within HTTP requests.

For more information on configuring no-code tools, API services, and practical third party integrations, reach out to us at sales@hicglobalsolutions.com

Related Articles
Enhancing Your Salesforce Experience with a Custom Activity Component

In today’s fast-paced business landscape, productivity hinges on streamlined workflows and intuitive interfaces. While Salesforce offers robust activity tracking capabilities, sometimes the standard components fall short of specific organizational needs.  That’s where a Custom Activity Component comes in—designed to tailor your activity management experience, boost user efficiency, and provide deeper insights into customer interactions. In […]

Read More
Step-by-Step Guide to Integrating Salesforce Doc-Gen with eSigning Tools

In today’s fast-paced digital landscape, streamlining document workflows is no longer a luxury—it’s a necessity.  Integrating a document generation app, like Docs Made Easy, with an eSigning tool, helps businesses automate the entire document lifecycle—from creation to signature—saving time, reducing errors, and boosting productivity. In this guide, we’ll walk you through the key steps, tools, […]

Read More
How to Build a Real Time Chat Application Using LWC and Models API

The Models API plays a significant role in providing access to and facilitating interaction with large language models (LLMs) from various Salesforce partners such as Anthropic, Google, and OpenAI. It enables applications to leverage these models for various tasks, including text generation and other AI-powered capabilities. As a user, you can configure any Salesforce-enabled model […]

Read More
How to Integrate Salesforce Data Cloud with Amazon Redshift

Companies can finally connect Amazon Redshift to Salesforce Data Cloud without using the ordinary username & password authentication systems ever since its collaboration with AWS has happened. Business owners no longer have to be concerned about managing static credentials or breaching data security. By leveraging Salesforce IDP, companies can easily access their data lakehouse in […]

Read More
Trigger Prompt Templates Using Flow, Apex, or REST API

A prompt template is a pre-designed structure in Salesforce, specially designed to create personalized prompts by filling the substitute with particular details of customers, products, and more. This approach strengthens the creation of prompts and lets teams generate data-driven content. Every time a prompt template is used, it automatically merges the data to create a […]

Read More
Step-by-Step Guide on Adding Opportunity Team Members to Slack Channel

Salesforce allows you to improve communication by effortlessly connecting Opportunity Team Members to Slack channels. This step-by-step blog will show you how to enable Opportunity Teams, configure Slack integrations, and automate the process with Salesforce Flow. Real-time Slack notifications may help you streamline communication, increase productivity, and keep your sales team on the same page. […]

Read More
Our Location worldwide
Indian Flag India
3rd Floor, A-10, Pegasus Tower, Sector 68, Noida, Uttar Pradesh 201301 +91-1203117884
United States of America Flag USA
333 West Brown Deer Road Unit G – 366 Milwaukee WI, USA 53217 +1(262) 310-7818
United Kingdom Flag UK
7 Bell Yard, London, WC2A 2JR +44 20 3239 9428
Canada Canada
HIC Global Solutions INC
43 Lafferty Lane, Richmond Hill, L4C 3N8, CA +1(262) 310-7818