Crowd Wisdom Configuration
Prerequisite
Submit a support case to install the integration package.
Master ID
A new field, Master Id is created on the user object and mapped to the Member field on Account object to ease Crowd Wisdom configuration for you. If you do not find this field, contact support.
Configuration of Crowd Wisdom
1. Update Page Layouts
To make Nimble AMS and Crowd Wisdom work together, we need to edit the page layouts for Events, Order Item Line and Products objects to add certain fields to them:
For Events, add the following fields:
LMS Error Message
LMS External Id
LMS Synchronization Status
Sync with LMS
For Order Item Line, add the following fields:
LMS Completion Status
LMS Error Message
LMS Reference Id
LMS Synchronization Status
For Products, add the following fields:
LMS Error Message
LMS External Id
LMS Synchronization Status
Sync with LMS
LMS Lifecycle Status
LMS Term
LMS Product Type
2. Create a field on Order Item Line
We will be creating a field on Order Item Line to let Nimble AMS know which customer has placed the order for which learning course/product. Using this field, SSO feature will connect accounts in Nimble AMS to Crowd Wisdom. Salesforce and Crowd Wisdom need a primary key in order for the SSO to work. You can use a Salesforce ID or a custom ID to connect accounts in Nimble AMS to Crowd Wisdom.
To create a custom ID field for this, follow the below steps:
From Setup, go to Object Manager.
In the
Quick Find
box, enter Order Item Line, then select Order Item Line.Click Fields and Relationships.
Click New.
In Field Type, select
Formula
.Click Next.
In Field Label, enter
Crowd Wisdom ID
orCrowd Wisdom External ID
, depending on the value given in Account Field API Name.Hit Tab key so that Field Name gets populated. Remove _ from the Field Name.
Select Return Type as
Text
.Click Next.
Ensure Select Field Type is populated with
Order Item Line
and Insert Field is populated withInsert Merge field
.In the Formula Box, enter
NU__OrderItem__r.NU__Customer__c
. This can differ based on your requirement.Click Next.
Leave Field Level Security as is and click Next.
Click Save.
3. Update User Page Layout
You will need to create one custom text field on User Object, as given below.
Create Master Id field on User object:
Field Label: Master Id
Data Type: Text
Length: 255
Field Name: MasterId
Help Text: Used for the Crowd Wisdom integration
Also, edit page layout of user object and add both fields to it.
4. Remote Site Settings
Before any Apex callout can call an external site, that site must be registered in the Remote Site Settings page, or the callout fails. Salesforce prevents calls to unauthorized network addresses.
To create Remote Site Settings, follow the below steps:
From Setup, enter
Remote Site Settings
and in theQuick Find
box, then select Remote Site Settings.Click New Remote Site.
Remote Site Name:
CrowdWisdom
.Remote Site URL: In Staging and test environments: https://www.precrowdwisdom.com/diweb/ws/integration/v1
In production environment: https://www.crowdwisdom.com/diweb/ws/integration/v1
c. Description: Crowd Wisdom end point for syncing LMS data
d. Active: TRUE
3. Click Save.
5. Create Field Mappings
These steps are duplicated in Configure Single Sign On Using Community Hub as Identity Provider which is referenced in the next step but given here with actual values to use, for your ease.
From the App Launcher, enter
Community Hub Settings
and select Community Hub Settings.Click New in the Field Mapping box
Populate the following fields:
Name: Crowd Wisdom Account ID
Destination Linking Field: NU__PersonContact__c
Record Destination: Account
Source Field: MasterId__c
Destination Field: Id
Record Source: User
Source Linking Field: ContactId
Click Save.
6. Create Two Connected Apps
Follow steps on Configure Single Sign On Using Community Hub as Identity Provider to create two Connected Apps - name them Crowd Wisdom LMS and LMS Credit Push. Crowd Wisdom LMS will connect Nimble AMS to Crowd Wisdom. On the other hand, LMS Credit push is created so that Crowd Wisdom can call back to Nimble AMS.
We have already created field on User object and added them to the Use object layout. So you can skip the corresponding step in Configure Single Sign On Using Community Hub as Identity Provider
2. Go Crowd Wisdom LMS, scroll down to Custom Attribute and click New.
The Custom Attribute field will be as follows:
Master Id
Key: MasterId__c
Value: $User.MasterId__c
Master_Id field will be mapped with Crowd Wisdom ID
or Crowd Wisdom External ID
to be populated on Order Item Line.
LMS Credit Push does not need any custom attributes. Its main function is to allow Crowd Wisdom to generate a token and access our API.
3. From Crowd Wisdom LMS, copy the Consumer Key (also referred to as the Client ID) and Consumer Secret (also referred to as the Client Secret). Provide these values to Crowd Wisdom so that they can use these values to perform the enablement steps on their backend. They will provide you with the Callback URL. Here’s a list of details you must provide to Crowd Wisdom:
Client ID/Consumer key
Consumer Secret/Client Secret
Credentials of a user with
Nimble AMS Integration
profile assigned. (This will be created in following steps)
4. Click Edit next to Crowd Wisdom LMS, and add the Callback URL given by Crowd Wisdom to it.
5. For LMS Credit Push:
Go to App manager and grant only one access in the Selected OAuth Scopes:
Full Access
.Add the callback URL as https://openidconnect.herokuapp.com/callback.
If you have only 1 account with Crowd Wisdom you can integrate crowd wisdom in only 1 org.
7. Create a Navigation Item
In this step we will be creating a new navigation item on Community Hub so that constituents can navigate from Community Hub to Crowd Wisdom. This navigation item will be displayed on the top menu bar of Community Hub as a global item. The constituents can click this to navigate to Crowd Wisdom via SSO, i.e. without logging in again.
To create a Navigation Item, follow the below steps:
From App Launcher, go to Navigation.
In Navigation to Configure, select
Global
.Click New Navigation Item.
Enter the following details:
Name: Crowd Wisdom
Is Active: Selected
Menu: Global
Title: Crowd Wisdom
Display for Logged in Users: Selected
Click Save.
8. Create a test user to test your configuration
The user creation steps are duplicated on Configure Single Sign-On (SSO) Using Community Hub as the Identity Provider as well, but this section is added to guide you on exact configurations of the user you will need, to test your configuration.
To create a user, follow steps on Create a Community Hub User and select the Role as Admin
and Profile as Nimble AMS Integration
.