High Level Overview – Creating an HTTP Callout in Salesforce Flow: A Step-by-Step Guide

Do you want to integrate your business with no code? Let’s get started.

Here at Univate, we know the power of Salesforce low-code automations. Salesforce Flow is a powerful tool that allows you to automate complex business processes without writing any code. One of the capabilities of Salesforce Flow is making HTTP callouts to external services, which can be particularly useful for integrating Salesforce with other systems. In this article, we will walk through the process of creating an HTTP callout to the endpoint “https://dummy.restapiexample.com/” using Salesforce Flow.

Step 1: Understanding HTTP Callouts Before we dive into the technical details, it’s important to understand what an HTTP callout is. An HTTP callout is a request sent from Salesforce to an external service over the HTTP protocol. This request can be used to retrieve data from the service, send data to it, or both.

Step 2: Setting Up Permissions To make an HTTP callout from Salesforce, you need to have the appropriate permissions. Ensure that you have the “API Enabled” permission and that your profile or permission set allows you to make callouts.

Step 3: Creating Named Credentials Named Credentials are a secure way of storing authentication data for external services. To create a Named Credential for our endpoint:

  1. Go to Setup.
  2. Type “Named Credentials” in the Quick Find box and select it.
  3. Click on “New Named Credential”.
  4. Provide a label and name.
  5. For the URL, enter “https://dummy.restapiexample.com/”.
  6. Select the appropriate authentication protocol and provide the necessary credentials.
  7. Save the Named Credential.

Step 4: Building the Flow Now, let’s build the flow that will make the HTTP callout:

  1. Go to Setup.
  2. Type “Flow” in the Quick Find box and select it.
  3. Click on “New Flow”.
  4. Choose the type of flow you want to create (e.g., Record-Triggered, Scheduled, etc.).
  5. Add an “Action” element to the flow.
  6. Search for and select the “HTTP Callout” action (see below).
  7. Configure the action by selecting the Named Credential you created earlier and specifying the HTTP method (GET, POST, etc.).
  8. Define the request headers, path parameters, and body if necessary. Refer to the above graphic for path endpoints.
  9. Save the action.

Step 5: Handling the Response After making the callout, you will need to handle the response from the external service:

  1. Add an “Assignment” element to capture the response.
  2. Use the “Set Variable” option to assign the response to a variable.
  3. Add decision elements to handle different response scenarios (e.g., success, error).

Step 6: Testing the Flow Before activating the flow, it’s crucial to test it:

  1. Use the “Debug” option in the Flow Builder.
  2. Provide any necessary input values.
  3. Run the flow and examine the output.

Step 7: Activating the Flow Once you’re satisfied with the flow’s performance, activate it:

  1. Click on “Activate”.
  2. Confirm the activation.

Step 8: Monitoring and Troubleshooting After activation, monitor the flow to ensure it’s working as expected. If you encounter any issues, use the debug logs and error messages to troubleshoot.

Conclusion Making an HTTP callout with Salesforce Flow is a straightforward process that can greatly enhance your Salesforce automation capabilities. By following the steps outlined in this guide, you can integrate Salesforce with external services and create more powerful, connected business applications.

Please note that this is a simplified guide, and the actual implementation may vary based on the specific requirements of the service you’re integrating with. Always refer to the Salesforce documentation and the API documentation of the external service for detailed instructions and best practices.

I hope this tutorial helps you get started with HTTP callouts in Salesforce Flow. If you have any questions or need further assistance, feel free to reach out. Happy automating!

Join the waiting list

Quick and painless. Add your name to the list!
1
Info
2
Thank you!
Subscription level*