top of page
Blog Page(1902x420).jpg

Keep your business ahead with

Insights That Drive Innovation

HTTP Callout into Flow Builder Without Code

In Spring 23, Salesforce is introducing a new HTTP callout element (beta) to Flow Builder for code-free integration. Use external data to automate processes by creating Flow Builder actions that use HTTP callouts to call web-based service APIs. Add your API details and Flow Builder immediately generates reusable actions that you can use in Flow Builder and Salesforce. If desired, set up direct integrations without code or middleware services such as Mulesoft.


HTTP Callout (Beta)

With the Spring 23 release, you can now use the new HTTP Callout (Beta) button from action items to call external web services. HTTP callouts can retrieve data from systems external to Flow Builder without using code. If you prefer, you can set up a direct integration without working with a developer.


HTTP Callout Demo

Before configuring integration with HTTP callouts, set up authentication in Settings > Named Credentials to allow external services to connect to your API.


Create an HTTP Callout in Flow

Let's see how to make HTTP callouts in flows without code.


  • Create a permission set

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



  • 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.



  • Permission Set Mappings

It's time to map the permission sets and external credentials. Then click the New button in the Permission Set Mappings section.



Don't forget to assign the permission set to yourself.


  • Create Named Credential

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



Create a Salesforce Flow using the “Create HTTP callout” element.


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

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



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


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



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



  • Show response



  • Final Flow



  • Test Salesforce Flow to check HTTP Callout


Summary:

HTTP Callout in Salesforce Flow is a way to make an HTTP request to an external web service or API. It allows you to send data to an external system or receive data from it, enabling you to integrate your Salesforce data with other systems. HTTP Callouts can be performed using either GET or POST methods, and the response from the external service can be used to update fields in Salesforce or trigger further actions in the flow. It is important to note that HTTP Callouts are subject to Salesforce's API request limits, so it's essential to design them carefully to ensure efficient use of API calls.

Comments


bottom of page