Hi all,
I want to enroll user to course using web service,
currently i am using ( $enrolment->roleid = $role_id; $enrolment->userid = $user_id;$enrolment->courseid = $course_id; )as a array parameters and its working fine.
but i want to enroll user using course ID number instead of courseid ( $enrolment->roleid = $role_id; $enrolment->userid = $user_id;$enrolment->idnumber = $idnumber; ) these parameter gets error.
is this possible to use these parameter?