---
schema_version: "1"
id: 97b5530c2c1dd963489c7d00ff40aa17d38c148c5284c5dafc9fd3da68f629ed
title: Create a Connected App for OmniOut (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_create_a_connected_app_for_omniout.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_connected_app_for_omniout.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9e7be8be7db7e9908b726c829baf5f6feea612c36ff5406bcc16ccff6041dab6
description: 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.
products:
  - Omnistudio
release: "264"
---
# 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.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

See [Connected Apps](https://help.salesforce.com/articleView?id=connected_app_overview.htm&language=en_US).

Before You Begin

- For Omniscripts, add an Omniscript LWC to your OmniOut project. See [Add an Omniscript Lightning Web Component to OmniOut (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_an_omniscript_lightning_web_component_to_omniout.htm&release=264.0.0&type=5 "For the managed package runtime, download and configure an Omniscript to use it off-platform in OmniOut. Download your Omniscript LWC from the LWC Omniscript Designer, add the component folder to the OmniOut project, and configure files for HTML and CSS.").
- For Flexcards, add a Flexcard LWC to your OmniOut project. See [Add a Flexcard LWC to OmniOut (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_a_flexcard_lwc_to_omniout.htm&release=264.0.0&type=5 "For the managed package runtime, download and configure a Flexcard to use it off-platform in your OmniOut project. Download your Flexcard LWC from the Flexcard Designer, add the component folder to the OmniOut project, and configure files for HTML and CSS.").

1. From Setup, enter External Client Apps in the Quick Find box, then select **Settings** in the External Client App section.
2. Turn on **Allow creation of connected apps** if it's off.
3. Click **New Connected App**.
4. In the **Connected App Name** field, enter a Name for your Connected App.
5. Enter an API name that is used to refer to the Connected App from your program.
6. Enter a contact email.
7. Check **Enable OAuth Settings**.
8. Enter a callback URL. The callback URL is the URL for the App's public site.
9. Move the **Fullaccess (full)** scope or **Access and manage your data (api)** into **Selected OAuth Scopes**.
10. Save your Connected App.
11. From your Connected App page, click **Edit Policies**.
12. In the **Permitted Users** field, select **All users may self-authorize**, and save the Connected App.
13. Copy the **Consumer Key** and **Consumer Secret**. These values populate the client\_id and client\_secret.
14. Open the OmniOut project in Visual Studio Code, and in the terminal, perform these tasks:
    
    1. 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
        ```
    2. In the command, replace these values:
        
        <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
                <colgroup>
                  <col>
                  <col>
                </colgroup>
                <thead class="slds-text-title_caps ">
                  <tr class="">
                    <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d282213e234">
                      <p style="margin-bottom:0;">Value</p>
                    </th>
                    <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d282213e240">
                      <p style="margin-bottom:0;">Description</p>
                    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr class="">
                    <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e234 ">
                      <p style="margin-bottom:0;">
                        <strong class="uicontrol">USERNAME</strong>
                      </p>
                    </td>

                    <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e240 ">
                      <p style="margin-bottom:0;">Replace with your Salesforce username.</p>
                    </td>

                  </tr>
                  <tr class="">
                    <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e234 ">
                      <p style="margin-bottom:0;">
                        <strong class="uicontrol">PASSWORD</strong>
                      </p>
                    </td>

                    <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e240 ">
                      <p style="margin-bottom:0;">Replace with your Salesforce password.</p>
                    </td>

                  </tr>
                  <tr class="">
                    <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e234 ">
                      <p style="margin-bottom:0;">
                        <strong class="uicontrol">CLIENTID</strong>
                      </p>
                    </td>

                    <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e240 ">
                      <p style="margin-bottom:0;">Replace with your Connected App's <strong class="uicontrol">Consumer
                          Key</strong>.</p>
                    </td>

                  </tr>
                  <tr class="">
                    <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e234 ">
                      <p style="margin-bottom:0;">
                        <strong class="uicontrol">CLIENTSECRET</strong>
                      </p>
                    </td>

                    <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e240 ">
                      <p style="margin-bottom:0;">Replace with your Connected App's <strong class="uicontrol">Consumer
                          Secret</strong>.</p>
                    </td>

                  </tr>
                </tbody>
              </table>
    3. (Optional) In the command, enter the appropriate URL for your Salesforce environment. By default, the URL is configured for a Sandbox org.
        
        <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
                <colgroup>
                  <col>
                  <col>
                </colgroup>
                <thead class="slds-text-title_caps ">
                  <tr class="">
                    <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d282213e347">
                      <p style="margin-bottom:0;">Environment</p>
                    </th>
                    <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d282213e353">
                      <p style="margin-bottom:0;">URL</p>
                    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr class="">
                    <td data-label="Environment" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e347 ">
                      <p style="margin-bottom:0;">
                        <strong class="uicontrol">Developer Org</strong>
                      </p>
                    </td>

                    <td data-label="URL" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e353 ">
                      <p style="margin-bottom:0;">
                        <kbd>https://login.salesforce.com/services/oauth2/token</kbd>
                      </p>
                    </td>

                  </tr>
                  <tr class="">
                    <td data-label="Environment" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e347 ">
                      <p style="margin-bottom:0;">
                        <strong class="uicontrol">Sandbox Org</strong>
                      </p>
                    </td>

                    <td data-label="URL" class="slds-cell-wrap" style="vertical-align:top;" headers="d282213e353 ">
                      <p style="margin-bottom:0;">
                        <kbd>https://test.salesforce.com/services/oauth2/token</kbd>
                      </p>
                    </td>

                  </tr>
                </tbody>
              </table>
    4. Run the command, and copy the **Access Token** and **Instance URL**.

What’s next: [Run OmniOut in Development Mode (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_run_omniout_in_development_mode.htm&release=264.0.0&type=5 "For the managed package runtime, view and test your Omniscript and Flexcard before adding it to your application by running it in development mode. Use a jsForce connection to request data from your org.").