Summary
Use a Salesforce Flow to automatically create a new learner in LearnUpon, based on any Salesforce trigger.
In this example, selecting Create in LearnUpon in the Salesforce User Layout triggers the creation of the LearnUpon account.
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. Add the Create in LearnUpon object to the User Page Layout
- From the Salesforce home page, select Setup, aka the gear icon.
- Use Quick find to search for and open Object Manager.
- From Object Manager, use Search to find and open User.
- Select User Page Layouts.
- Select User Layout.
- In User Layout panel, select and drag Create in LearnUpon into the layout area, wherever you need it in the process.
- In User Layout panel, select Save.
The following screenshot shows adding Create in LearnUpon to Additional Information after User Details.
Step 2. Create the Flow
- From the Salesforce home page, select Setup.
- Use Quick Find to search for and open Flows.
- Select New Flow to open the Flows feature.
Step 3. Choose a trigger
The following screenshot shows New Flow, with Record-Triggered Flow selected.
- Select a specific trigger > Create to start building the flow.
- In Object, select User.
- In Configure Trigger, select A record is created or updated.
- In Condition Requirements, select All Conditions Are Met (AND).
- In Field, find and select LearnUponP__Create_in_LearnUpon__c (Create in LearnUpon).
- Set Operator to Equals.
- In Value choose $GlobalConstant.True.
- 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. Add an Update Record element
- In the Flow line select the plus symbol to add an element.
- Select Update Triggering Record.
- In Label, enter a name for this process (Example: Clear Checkbox Element).
- For How to Find Records to Update and Set Their Values, use default setting Use the user record that triggered the flow.
- In Set Field Values for the User Record:
- set Field to LearnUponP__Create_in_LearnUpon__c (Create in LearnUpon)
- set Value to False {!$GlobalConstant.False}
- Select Done to save the process.
Step 5. Create the action
This action - creating a learner in LearnUpon - is the response to the trigger in the flow. At a minimum you must provide a learner’s name and Salesforce User ID for a new account.
You can add more options as required. See Learner data you can send from Salesforce to LearnUpon.
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
.
- Following the Update record element select the plus symbol to add another element.
- Select Action.
- In Action, search for and select Create User in LearnUpon.
- In Label enter a name for this action.
- In Email, choose $Record > Email or enter {!$Record.Email}.
- In LearnUpon portal (subdomain) to create user in, enter the subdomain as required.
- In First name choose $Record > FirstName or enter {!$Record.FirstName}.
- In Last name choose $Record > LastName or enter {!$Record.LastName}.
- In Salesforce User ID choose $Record > User ID or enter {!$Record.Id}.
- Select Done to save the changes to the action.
- Select Save to save the flow.
- In Flow Label, enter a name for your flow, and Save to finish.
When you are ready to use the Flow select Activate.
Step 6. Test the Flow - using the Create in LearnUpon check box
Select a test user in Salesforce, to create a new account for them in LearnUpon.
- From the Salesforce home page, select Setup.
- Use Search to find and open Users.
- Select a test user’s name.
- Select Edit.
- Find and select the Create in LearnUpon check box.
- Select Save.
Step 7. Confirm the user account now exists in LearnUpon
To check if the Flow is creating the Salesforce User as a learner in LearnUpon:
- Log into your LearnUpon portal.
- From main navigation, go to Users.
- Use Search (magnifying glass) to find the test user’s name from Salesforce.
Confirm the Salesforce User now exists in your LearnUpon portal.
Learner data you can send from Salesforce to LearnUpon
As part of the action, aka creating Salesforce User as a new learner in a LearnUpon portal, you can set any of the following fields in LearnUpon, based on Salesforce data:
- Account expires on
yyyy-mm-dd
- Instructor can create courses
- Instructor can edit courses they instruct
- Language, as ISO language code
- Login enabled: default is
True
- Manager can enroll learners to courses
- Manager can mark learners complete on enrollments
- Manager can unenroll learners from courses
- Membership type: for portals with Association Mode enabled only
- Must change password on first login
- Password
- Salesforce Account ID, for API logging within Salesforce only
- Salesforce Contact ID
- User type: default is
Learner
- Username
Salesforce documentation for reference
Refer to Salesforce’s documentation for full guidance. LearnUpon is not responsible for content off this website.
See: