How to create a Course Session via API of Power Automate

If you want to create a Learning Module via API, you need to go to the or a regional page like and find the POST​/odata​/v2​/Courses({id})​/CourseSessions.


To create the Course Session, you must provide the required information: Course ID, Start and End Date, and Time Zone. 


If your Course Session is in the Teams, you need to add the next rows:

          "Room": null,
          "IsTeamsOnlineMeeting": true,
          "MeetingUrl": "",



{"TimeZone": "GMT Standard Time",
          "StartDate": "2022-09-30T14:00:00Z",
          "EndDate": "2022-09-30T15:00:00Z",
          "CreatedAt": "2022-09-28T13:17:21.5966667Z",
          "ModifiedAt": "2022-09-28T13:17:21.5966667Z",
          "TimeZoneName": "(UTC+03:00) Minsk",
          "StartDateTimeZoneOffset": 10800000,
          "EndDateTimeZoneOffset": 10800000,
          "StartDateLocal": "2022-09-28T17:00:00.0000000",
          "EndDateLocal": "2022-09-28T18:00:00.0000000",
          "Room": null,
          "IsTeamsOnlineMeeting": true,
          "MeetingUrl": "",
          "MaxAttendees": null,
          "AllowLearnerToSetAttendance": false,
          "IsSignatureRequired": false,
          "IsQrCodeRequired": false,
          "AttendanceStartDate": null,
          "AttendanceStartDateLocal": null,
          "AttendanceEndDate": null,
          "AttendanceEndDateLocal": null,
          "TakenSeatsCount": 0,
          "Description": null,
          "Cost": null,
          "EnrollmentDeadline": null,
          "EnrollmentDeadlineLocal": null}



In Power Automate need to choose "Sent an HTTP Request". In the PA you will see two similar actions in the LMS365 Connector: "Send an HTTP request" and "Send an HTTP request (preview). Differences in those actions can be found in the related article. 




Was this article helpful?
0 out of 0 found this helpful


Article is closed for comments.