Forum Discussion
Using API calls to "deactivate" a course
We use Storyline 360 to author and publish eLearning courses (e.g., typical SCORM) that our clients sell as subscriptions to their clients. We need to allow the end-user clients to download the SCORM packages and load them onto whatever LMS they happen to be using. However, if the client chooses to end their subscription, we need to have a way to disable the courses.
As a solution, we are planning to set up a server or web application that stores a course status (e.g., active/inactive) for each course. This could be a simple database or a configuration file hosted on a server.
- Example Setup:
- A database table with columns:
- course_id: Unique ID for each course.
- status: "active" or "inactive".
- A web application or API endpoint that:
- Returns the course status (enabled or disabled) in JSON format.
- Allows authorized users to toggle the course status.
Whenever the course is launched, we are going to use JavaScript to fetch the course status from the remote server.
In Storyline we will have a text variable named CourseStatus to store the status fetched from the server.
Then, on the first slide of the course, we will use triggers and conditions in Storyline based on the CourseStatus variable to control whether the course will play or stop.
For example if CourseStatus is "active", the course will play normally. If CourseStatus is “inactive” then the course will display a layer or redirect to a slide showing a message such as "Your organization’s subscription to this course has expired. Please contact support."
Will this work?
Will we have issues with the API call being blocked?
We would very much appreciate any input on this plan.
THANKS so much!
- KarlMullerCommunity Member
- MathNotermans-9Community Member
This will work. I used a similar approach to open up a course on a specific date.. and close it again at another date.