Setting up xAPI for Salesforce

Adding LRS URL & Token to credentials

  1. Select "xAPI Named Credential" from the Named Credentials tab.

  2. On the "xAPI Named Credential" page, click on Edit, then modify the URL (“https://www.your-lrs-domain.com”) to your preferred LRS.

  3. Ensure that "Enabled for callouts" is checked and then proceed by clicking Save.

  4. Select "xAPI External Credential" from the Named Credentials External Credentials tab.

  5. In the "Custom Headers" section for Authorization:

  6. Replace "your-authorization-header-here" with valid credentials for your target LRS service. This is a standard HTTP Authorization header of the form <auth-scheme> <authorization-parameters>. Make sure you include the word "Basic" if required. An example would be: "Basic NjEwM2U0NWNlNW…M0OGI4NTdh"

  7. Set the header value for “X-Experience-API-Version” to match the version of your target LRS service. The default version is 1.0.3. This is a required header for services that are xAPI compliant.

Enable external credential principle access

Navigate to "Profiles" setup and choose the profile you want to add principle access for Globebyte xAPI to:

  1. Click on the link at top labeled as "Enabled External Credential Principal Access".

  2. Select "xAPIExternalCredential – xAPIPrincipal" from the left panel and click Add to move it to right panel. Then proceed by clicking Save.

Create a new custom settings instance

Navigate to "Custom Settings" setup:

  1. Next to item named "xAPI Settings", click on Manage.

  2. Select the "New" button to add settings entry of this type.

  3. Make any necessary updates required for Default Locale.

  4. Adjust checkboxes according to your logging needs.

Once complete, create new integrations or integrate into existing Flows.

Last updated