Connect Salesforce to MuleSoft with Fewer Clicks

Rajesh Nagarajan
Another Integration Blog
3 min readMar 2, 2023

Using the new MuleSoft Services page in Setup as part of Salesforce spring 2023 release you can now log in to MuleSoft AnyPoint Platform before importing REST APIs from Anypoint Exchange as external services. Previously, to use MuleSoft API we used to create connected app and configure all the necessary credentials and permissions on multiple Setup pages. Now, when you log in to MuleSoft AnyPoint Platform from the MuleSoft Services page, the system creates all these objects for you in the background, drastically reducing the amount of configuration required.

Prerequisites

  • Anypoint Platform — We’ll need an Anypoint Platform account to host our application on CloudHub. You can sign up for a free trial account here.
  • Salesforce Account — We’ll need Salesforce account with Spring 2023 release update.

Create MuleSoft connections from within Salesforce

  1. Login to Salesforce, go to setup and search for MuleSoft

2. Click login and enter your MuleSoft Credentials. Select US/EU Cloud based on your control plane location.

3. On login page enter your custom domain.

4. Login to the Anypoint Account and grant access

5. You should now be able to see your MuleSoft account added to your Salesforce Org.

6. Now you can import the API you want use using import services,

7. Once you click import services this will show count of all the service available to import

8. Click New External Service, this will present option to create new or import from Anypoint

9. Select from Anypoint Platform to import available API’s

10. Select the API and provide Name, NamedCred (pick from dropdown which was just added) and Description

11. Now choose the operations you would want to import, You can choose multiple operations

12. Once you click next screen will present you with all operations input parameters, output parameters

13. You should now see the service added with the required Named Credentials auto configured.

14. This can now be used to securely call all external MuleSoft API’s from within Salesforce.

Next Steps

In this tutorial, we walked through the basics of connecting to MuleSoft external API’s using fewer clicks. You learned how to

  1. Set up and import MuleSoft Services onto Salesforce.
  2. Connect to different MuleSoft API’s and its Methods.

--

--