by Dual Cube.
Hello Sandeep,
I understand you are trying to create an app for Moodle.You have mentioned that you are getting the course details and its contents. In order to get the SCORM id you have to fetch the record from database using the course module
gloabl $DB;
$scorm = $DB->get_record("scorm", array("id"=>$cm->instance))
$scorm_ID = $scorm->id;
//where $cm is the course module//
This might solve your problem.
Let me know if this was of any help. Have a good day.
Thanks and regards
Purnendu (developer)
DualCube