Create a Connected App for Near Real-Time Segmentation

After you install the B2C Commerce data kit, create a segment, and create a data graph, you create a connected app.

  1. Login to your Salesforce org.
  2. From Setup, in the Quick Find box, enter External Client App Manager.
  3. Click New External Client App.
  4. Specify an app name and contact email address.
  5. Select Enable OAuth.
    When you select this setting, additional OAuth-related settings are displayed.
  6. Enter callback URL as https://login.salesforce.com/services/oauth2/success.
  7. Add the following OAuth scopes to the Selected OAuth Scopes list:
    • Manage Data 360 profile data (cdp_profile_api)
    • Manage user data via APIs (api)
    • Perform ANSI SQL queries on Data 360 data (cdp_query_api)
    • Perform requests at any time (refresh_token, offline_access)
    • Perform segmentation on Data 360 data (cdp_segment_api)
  8. Select Enable Client Credentials Flow.
  9. Select Enable Device Flow.
  10. Select Require Secret for Web Server Flow.
  11. Select Require Secret for Refresh Token Flow.
  12. Deselect Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows.
  13. Click Save.
  14. Navigate to External Client App Manager and click your app.
  15. Click Edit Policies.
  16. Under Client Credentials Flow, search for and select a user.
    You can select any user of the organization that has access to multi-factor authentication (MFA) - email or push notifications.
  17. Under Refresh Token policy, choose Refresh Token is valid until revoked.
  18. For IP Relaxation, select Relax IP restrictions.
  19. Click Save.