Home » All Blogs » HTTP Callout into Flow Builder Without Code

HTTP Callout into Flow Builder Without Code

In Spring 23, Salesforce introduces the new HTTP Callout (Beta) element in the flow builder to do integration without code. Automate processes with external data by creating Flow Builder actions that call web-based service APIs using HTTP Callout. After you add the details of the API, Flow Builder generates a reusable action that you can use right away in Flow Builder and across Salesforce. Set up direct integrations as needed without code or a middleware service, such as Mulesoft.

HTTP Callout (Beta)

in Spring 23 release With the new HTTP Callout (Beta) button from the action element, we can now make calls to external web services. HTTP Callout can fetch data from an external system into Flow Builder without using code. We can set up direct integrations as needed without having to work with a developer.

HTTP Callout Demo

Before you configure an integration with HTTP Callout, you set up authentication in Setup > Named Credentials so that the external service can connect to the API.

Create an HTTP Callout in Flow

Let’s see how to create HTTP callout in flow without code.

#1. Create a permission set

Create a Permission Set for the people who need to use the HTTP Callout.

#2. Create an External Credential

Create External Credential from Setup -> Named Credentials -> External Credentials -> New

For this Demo, we will use authentication API for that we will use custom. But you can also use OAuth2.0.

#3. Permission Set Mappings

It is time to map your permission set and External Credentials. Then Click on the new button from the “Permission Set Mappings” section.

Dont forget to assign the permission set to yourself.

#4. Create Named Credential

Create Named Credential from Setup -> Named Credentials -> New

#5. Create Salesforce Flow using “Create HTTP callout” element.

5.1. Create one screen flow in Salesforce to call Joke API and show the result.

5.2 After creating the Screen flow. Click on New Action and Select “Create HTTP Callout (Beta)” option to make callout.

Create HTTP Callout(Beta)

5.3. Configure the New HTTP Callout Action and select the Named Credential which you just created

Configure the callout request details that the HTTP callout performs, which create an action that’s invocable in Salesforce.

Configure HTTP callout

Enter the URL endpoint for your request. To add URL path variables, place them in curly brackets. For example: /{city}. When you invoke this action in a flow, set input values for each path variable defined here.

To finish configuration, provide a sample API response body.

Behind the screen, it creates a Dynamic Apex Class. Now Define the response name

5.4. Show response

5.5 Final Flow

6. Test Salesforce Flow to check HTTP Callout

HTTP Callout in Flow without Code

Check below video for demo and implementation in 8 min.

YouTube video

Summary

I hope this post helped you to understand how can do HTTP Callout into Flow Builder Without Code using HTTP Callout (Beta).

Amit Chaudhary
Amit Chaudhary

Amit Chaudhary is Salesforce Application & System Architect and working on Salesforce Platform since 2010. He is Salesforce MVP since 2017 and have 17 Salesforce Certificates.

He is a active blogger and founder of Apex Hours.

Articles: 400

One comment

  1. Hello Amit, thanks for posting this. I am justfollowing this article blindly.May I ask where can I get the sample response?
    Regards,
    Lakshmi

Leave a Reply