To connect a Salesforce flow to external APIs, follow these steps:
Create Named Credentials in Salesforce:
Named Credentials in Salesforce simplify the authentication process by storing the URL and authentication details needed to call the external service. Set up Named Credentials for both NTO and AnyAirlines APIs.
Navigate to Salesforce Setup > Named Credentials > New Named Credential.
Enter the details for NTO API, including the endpoint URL and authentication settings.
Repeat the process for the AnyAirlines API.
Create External Services in Salesforce:
External Services allow you to register the external APIs with Salesforce so that they can be invoked from a flow.
Navigate to Salesforce Setup > External Services > New External Service.
Use the OpenAPI/Swagger or RAML specification files provided by NTO and AnyAirlines to register their APIs.
This step involves importing the API specifications and configuring the services, which will be used in the flow.
Use an Action Element in Salesforce Flow:
Within Salesforce Flow, use the Action element to call the external services that were registered.
This involves adding an Action to your flow and selecting the appropriate External Service action that corresponds to the API method you want to invoke.
[References:, Salesforce External Services Documentation, Salesforce Named Credentials Documentation, , ]
Submit