List past attempts
Calllessons.attempts() to get all attempts for a lesson:
attempt number, score, finalized status, totalQuestions, and correctQuestions.
See the reference for
the full return type.
Get attempt details
To see per-question data for a specific attempt, calllessons.attemptDetails():
Extract questions
UsegetLessonAttemptQuestions() to get a flat list of questions from the response:
id, correct, studentResponse, and content.rawXml for re-rendering.
See the
reference for
full type documentation.
Why do I need a helper for this?
Why do I need a helper for this?
The raw response shape differs by lesson type. Adaptive lessons (
powerpath-100) return
seenQuestions, which is only the questions PowerPath actually served (the count varies per
student). Linear lessons (quiz, test-out, etc.) return questions, which is the full
fixed set for the attempt.getLessonAttemptQuestions() normalizes both into a single LessonAttemptQuestion[]. If you
need to distinguish the two (e.g., to show “X of Y questions seen” for adaptive lessons),
check details.lessonType and access the raw fields directly.Build a review screen
A typical review flow:Next steps
Lesson discovery
Start a new lesson
Reference
Parameters, properties, methods, and return types