You are here:
Create a Connected App for OmniOut (Managed Package)
For the managed package runtime, enable the external connection to interact with Salesforce by configuring a Connected App in Salesforce. Create a Connected App to make external calls from OmniOut. Connected Apps provide OmniOut with an access token that enables proxies and login authentication to work.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
See Connected Apps.
Before You Begin
-
For Omniscripts, add an Omniscript LWC to your OmniOut project. See Add an Omniscript Lightning Web Component to OmniOut (Managed Package).
-
For Flexcards, add a Flexcard LWC to your OmniOut project. See Add a Flexcard LWC to OmniOut (Managed Package).
- From Setup, enter External Client Apps in the Quick Find box, then select Settings in the External Client App section.
- Turn on Allow creation of connected apps if it's off.
- Click New Connected App.
- In the Connected App Name field, enter a Name for your Connected App.
- Enter an API name that is used to refer to the Connected App from your program.
- Enter a contact email.
- Check Enable OAuth Settings.
- Enter a callback URL. The callback URL is the URL for the App's public site.
- Move the Fullaccess (full) scope or Access and manage your data (api) into Selected OAuth Scopes.
- Save your Connected App.
- From your Connected App page, click Edit Policies.
- In the Permitted Users field, select All users may self-authorize, and save the Connected App.
- Copy the Consumer Key and Consumer Secret. These values populate the client_id and client_secret.
-
Open the OmniOut project in Visual Studio Code, and in the terminal, perform these
tasks:
-
Enter this command without running it.
curl -d "username=USERNAME" -d "password=PASSWORD" -d "client_id=CLIENTID" -d "client_secret=CLIENTSECRET" -v -d "grant_type=password" https://test.salesforce.com/services/oauth2/token -
In the command, replace these values:
Value
Description
USERNAME
Replace with your Salesforce username.
PASSWORD
Replace with your Salesforce password.
CLIENTID
Replace with your Connected App's Consumer Key.
CLIENTSECRET
Replace with your Connected App's Consumer Secret.
-
(Optional) In the command, enter the appropriate URL for your Salesforce environment. By default, the URL is configured for a Sandbox org.
Environment
URL
Developer Org
https://login.salesforce.com/services/oauth2/token
Sandbox Org
https://test.salesforce.com/services/oauth2/token
-
Run the command, and copy the Access Token and Instance URL.
-
What’s next: Run OmniOut in Development Mode (Managed Package).
