Skip to main content

Setup a new API client in Salesforce Account Manager and integrate that client with LoudCrowd.

J
Written by Josh Garrisi
Updated over a year ago

Quick Note on Environments:

Should you want to test out storefronts on a lower (non-production) environment, the procedure below will be the same, however, please let your CSM know so they can setup a separate test program in your LoudCrowd instance. This will help prevent test ambassadors from cluttering the stats at go-live. Furthermore, it will let LoudCrowd know we can mark your test data for removal after go-live.


Instructions:

  1. Create API Client

    To be completed by: Salesforce Admin

    Log into Salesforce Account Manager and click “API Client” on the left hand side of the page.

    Click “Add API Client”

    Use these General Settings. For the password, use a long and random string. You will need this password for Step Two.

    For the Organization and Role settings, select your organization and the Commerce Cloud API Role. After setting the role, make sure set the role filter to the exact instance of commerce cloud.

    Use these OpenID Settings:
    * Allowed Scopes:

    1. sfcc.orders

    2. sfcc.products

    3. sfcc.catalogs

    4. sfcc.inventory.availability

    5. sfcc.promotions

    6. sfcc.promotions.rw

    7. sfcc.source-codes

    8. sfcc.source-codes.rw

    9. sfcc.cdn-zones

  2. Token Endpoint Auth Method: client_secret_post

  3. Access Token Format: JWT

  4. Create the Loudcrowd Integration

    1. Log into Loudcrowd and go to the Integrations page.

    2. Scroll to the bottom and add a new Ecommerce Integration.

    3. Select the Salesforce tab in the modal and provide the following values from the image below.

      1. Store Url: enter the base url of your website

      2. Product Id Regex: This is used by our system to parse out the product id from the specific product detail page urls during the product picking process. Your CSM will help set this field up, so for now, just enter the default: \\\\d+

      3. Product URL Template: This is used to correctly link from displayed products back to the product detail page. It should be the URL of your product detail page with {{productId}} in place of the product id portion.

        1. for example: if your product detail page for product 123456 is https://example.com/123546.html then enter https://example.com/{{productId}}.html in this field

      4. Short Code: to find this value:

        1. Login to business manager and go to Administration

        2. Go to Site Development

        3. Go to Salesforce Commerce API Settings.

        4. Copy the Short Code in this page

      5. Organization ID: to find this value:

        1. Login to business manager and go to Administration

        2. Go to Site Development

        3. Go to Salesforce Commerce API Settings.

        4. Copy the Organzation ID in this page

      6. Site ID: to find this value:

        1. Login to business manager and go to Administration

        2. Go to Sites

        3. Go to Manage Sites

        4. Copy the ID of the site

      7. For Client ID and Client Secret, use the auto-generated API Client ID from Step One and the password you provided for Client Secret.

Did this answer your question?