Forum Discussion
JohnCooper-be3c
5 months agoCommunity Member
Hi Todd,
Andrew is correct, the syntax for the commit statement is:
lmsAPI.Commit();
The Commit method typically takes an empty string as an argument and returns a boolean value "true" or "false" indicating whether the commit to the LMS was successful.
You might want to consider just checking the Commit was successful:
var commitSuccess = lmsAPI.Commit();
if (commitSuccess !== "true") {
console.error("Failed to commit changes to the LMS");
}