Create REM Course - An example using REM 4.0 SDK

using (EnrollmentAddon rem = ObjectFactory.CreateAddonSite("url"))
            {
                var onlineCourse = rem.CoursesInfo.Create(CourseType.Online);
                onlineCourse.CourseId = new Guid(""); // lms course site collection id
                onlineCourse.OrganizationId = new Guid(""); // lms org id
                onlineCourse.OrganizationTitle = "Org title";
                onlineCourse.Category = new SPFieldLookupValue(""); // lookup id from Lists/Categories list


                var customFieldAccessor = (IEntityFieldAccessor) onlineCourse;
                customFieldAccessor.SetValue(new FieldData("CustomField1", new Guid("customfield_guid1")), "custom field value1");
                customFieldAccessor.SetValue(new FieldData("CustomField2", new Guid("customfield_guid2")), "custom field value2");

                rem.CoursesInfo.Update(onlineCourse);
            }

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.