Learning Core: supported way to auto enrol into a collection, and a broken quiz launch URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
22m ago
Hi everyone,
I’ve built a quiz in Learning Core (a Quiz content item inside a course, delivered through a collection). The learner gets a learning task, opens it, clicks Enroll, then Start, then the quiz. Two things I’m stuck on and can’t find documentation for.
- Auto enrol. Is there a supported way to enrol a user into a collection automatically, through a Flow, a Script Include, or an API, so they don’t have to click Enroll themselves? I’ve looked at LearningAccessAPI and I only see methods to create or update a learning task and updateUserActivity, none of which enrol the user the way the Enroll button does. Writing sn_lc_user_course_activity directly is blocked.
- Broken launch URL. When I launch the quiz from the course page or Start, the URL it builds has collection_id set to the course sys_id, and the page returns “This URL seems to be broken.” The only thing that opens the quiz is the collection player (sn_lep_quiz) with the correct collection_id, and only after the learner has enrolled. A direct deep link to the quiz returns “You’re not yet enrolled in this learning.”
So right now the only working path is Email, To-dos, Enroll, Start, Quiz.
My questions:
- Is auto enrol into a collection supported anywhere, or is Enroll always a manual learner action?
- Is the collection_id equals course_id broken URL a known issue, and what is the correct supported way to launch a quiz?
Release: Australia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
9m ago
The supported approach is to use the Learning Core enrollment process rather than directly inserting records into sn_lc_user_course_activity. The LearningAccessAPI does not appear to expose a supported method for automatically enrolling users into a collection.
I would suggest the following:
Open Learning > Content > Collection.
Open the required collection and verify its course items.
Check whether the learner has an associated learning task.
Test enrollment through the learner's My Learning experience.
Verify that the quiz opens from the associated learning task.
For the incorrect quiz URL, avoid manually changing the collection_id or modifying out-of-box scripts. First, confirm that the quiz is correctly associated with the collection and learning path.
If the issue persists, raise a ServiceNow Support case with the expected and actual URLs, collection sys_id, and course sys_id.
I would also avoid direct database updates or custom API calls unless ServiceNow confirms they are supported for your Learning Core release.