Summary
Use a Salesforce Flow to automatically create a course enrollment in LearnUpon, whenever you create or edit a Contact record in Salesforce. In LearnUpon terms, this process is also called enrolling a learner on a course.
In this example: when the Salesforce Contact has a LearnUpon User ID and their Department field has a value of Finance, the flow enrolls the Contact onto a course in a LearnUpon portal.
The Salesforce Contact must already exist in your LearnUpon portal with the same email address as they have in Salesforce. This Flow doesn’t create a new learner in the portal.
LearnUpon’s API and the Salesforce integration are available depending on your LearnUpon plan.
See Collection: Salesforce Flow about access permissions and prerequisites for this process.
Step 1. Find the course ID in LearnUpon
- See Find help: find and copy identifiers from your portal > Find a course ID.
- Copy the course ID from the URL to a safe place for reference.
The following screenshot shows an example course with a course ID of 1475771.
Step 2. Create the Flow
- From the Salesforce home page, select Setup, aka the gear icon .
- Use Quick Find to search for and open Flows.
- Select New Flow to open the Flows feature.
Step 3. Select a Trigger
This example flow uses a trigger of creating or updating a record that has a LearnUpon User ID, and includes a Department object with a value of Finance.
Use the trigger conditions that work best for your organization’s flows.
The following screenshot shows New Flow, with Record-Triggered Flow selected.
- Select a specific trigger > Create to start building the flow.
- In Object, select Contact.
- In Configure Trigger, select A record is created or updated.
- In Condition Requirements field, select All Conditions Are Met (AND).
- In Field, find and select the Department object.
- Set Operator to Equals.
- In Value enter Finance.
- Select Add Condition to add the second criteria.
- In the second Field find and select LU User ID (LearnUponP__LU_User_ID__c).
- Set Operator to Is Null.
- In Value, enter False.
- In When to Run the Flow for Updated Records, select Every time a record is updated and meets the condition requirements.
- In Optimize the Flow for: select Actions and Related Records.
- Select Done to save.
Step 4. Create the Action
This action - enrolling an existing learner to a course, by referring to the LearnUpon course ID - is the response to the trigger in the flow.
Using to the LearnUponP__LU_User_ID__c object confirms that this user already exists in the LearnUpon portal. This flow won’t create a new user in LearnUpon, if they don’t already exist.
Tip: When you select the portal where you are creating the user, enter the portal subdomain only. For example, if the portal is myportal.learnupon.com
, enter myportal
.
- In the Flow line select the plus symbol .
- Search for Action and select it
- Search for the Create Enrollment in LearnUpon action
- Select the Create Enrollment in LearnUpon action
- In Label, enter a name for this Action.
- In Email choose $Record > Contact > Email or enter {!$Record.Email}.
- In LearnUpon portal (subdomain) to create user in, enter the subdomain as required.
- In Course ID (either Course ID or Course Name must be specified), enter the Course ID (1475771).
- Select Done to save the changes to the Action.
- Select Save to save the flow.
- In Flow Label field, enter a name for your flow, and Save to finish.
When you are ready to use the Flow select Activate.
Step 5. Test the Flow - create a Contact Enrollment in LearnUpon
Select a test contact and set their details so they meet the criteria of the flow, to confirm they are enrolled on a course in the portal.
- From the Salesforce home page, select Contacts.
- Search for and select a specific Contact.
- Select Details.
- In Department, select Edit (the pencil icon).
- Enter Finance.
- Select Save to finish the change.
Step 6. Confirm the new Contact enrollment exists in LearnUpon
To check if the process is creating the enrollment:
- From your portal's main navigation, go to Users.
- Use Search (magnifying glass) to find and select the Contact whose details you edited.
- From their profile select Enrollments.
Confirm you see the correct enrollment listed.
User data you can send from Salesforce to LearnUpon
As part of creating the action, you can set any of the following fields about Contacts in LearnUpon, based on Salesforce data:
- Course Name: the action requires one of Course Name or Course ID
- Re-enroll if already completed
- Salesforce Account ID: for API logging within Salesforce only
- Salesforce Contact ID: for API logging within Salesforce only
- Salesforce User ID: for API logging within Salesforce only
- Username
Salesforce documentation for reference
Refer to Salesforce’s documentation for full guidance. LearnUpon is not responsible for content off this website.
See: