Summary
Use a Salesforce Flow to create a new learner in LearnUpon automagically from a Salesforce Contact, based on any Salesforce trigger.
In this example, selecting Create in LearnUpon on the Contact Layout page triggers the creation of a new 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 Contact 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 Quick Find to search for and open Contact.
- Select Page Layouts.
- Select Contact Layout.
- In Contact Layout panel, select and drag Create in LearnUpon into the layout area, wherever you need it.
- In the Contact Layout panel, select Save.
The following 2 screenshots show adding Create in LearnUpon to Contact Information.
Step 2. Create the Flow
- From the Salesforce home page, select Setup.
- Use Quick Find to search for and open Flow.
- 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 Contact.
- In Configure Trigger, choose A record is created or updated.
- In Condition Requirements, choose 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, choose Every time a record is updated and meets the condition requirements.
- In Optimize the Flow for: choose Actions and Related Records.
- Select Done.
Step 4. Add an Update Record element
In this step, Salesforce enters the API name in the required field automatically.
- 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, set to Use the contact record that triggered the flow.
- In Set Field Values for the Contact 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 new 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 in this same article.
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 Contact 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 Contact in Salesforce, to create a new account for them in LearnUpon.
- From the Salesforce home page, select Contacts.
- Search for and select a specific Contact.
- Select Details.
- Find Create in LearnUpon.
- Select the pencil next to Create in LearnUpon to edit it.
- 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 Contact as a learner in LearnUpon:
- Log into your LearnUpon portal.
- From your portal's main navigation, go to Users.
- Use Search (magnifying glass) to find the test user from Salesforce.
Confirm the Salesforce Contact now exists in your LearnUpon portal.
Learner data you can send from Salesforce to LearnUpon
As a part of the action, aka creating Salesforce Contact as a learner in LearnUpon, you can set any of the following fields in LearnUpon, based on Salesforce data:
Here is a list of the other available options:
- 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 (only used for API logging within Salesforce)
- Salesforce User 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: