You are here:
Calling Web Services with the Omniscripts HTTP Action
With the HTTP Action, call internal and external web services from an Omniscript without coding or making Salesforce API calls. You can call an HTTP API that allows Apex, Named Credentials, SOAP/XML, or Web, and use the Omniscript's JSON as input.
To make sure that the HTTP Action functions correctly without errors related to Content Security Policy (CSP) restrictions, you must add a trusted URL in the Setup, and specify CSP directives and Permissions-Policy directives. When adding this URL, it's important to select all checkboxes under CSP Directives to fully configure the directives. See Add or Edit a Trusted URL.
You must add the Salesforce org's domain into a Remote Site's Remote Site URL field. For more information, see Adding Remote Site Settings.
Use the HTTP Action to:
-
Send GET, POST, PUT, or DELETE requests to standard REST Endpoints.
-
Call Apex REST.
-
Access Salesforce Named Credential (OAuth) identity services.
Configure the HTTP settings to call web services.

