APIとPower Automateを使用してラーニングモジュールを作成する

  • 更新

API

API でラーニングモジュールを作成するには、https://api.365.systems/ にアクセスし、

LearningModules セクションの、POST/odata/v2/LearningModules Creates Learning Module を選択します。

必須のパラメータ「コースID」、「ラーニングモジュールのタイトル」、「設定の値」を指定します。

Learning Module via API and Power Automate1.png

Learning Module via API and Power Automate2.png

例:

{
"CourseId": "02dc8861-f6c9-43f6-9d91-81ffd86ba4ca",
"Title": "Feedback Form",
"Configuration": {
"Items": "[{\"Content\":\"https://forms.office.com/Pages/ResponsePage.aspx?id=zz3XjXy17EC3-HVbUS2feyYsdHxAdIVGrmb7s_E7v85UOE42NzdHOExJMTdBVU5VSzdZMVBBU0ZIRy4u\",\"EmbedType\":5,\"ItemType\":3,\"Id\":\"8e55e9d4-93a7-4359-8427-7bc236359d68\",\"Title\":\"Feedback Form\",\"IsAvailable\":null,\"IsDeleted\":null},{\"ConfirmationMessage\":\"Please confirm that you have participated in the session and completed the feedback form\\n\",\"CheckMarkMessage\":\"I confirm that I participated in the webinar and completed the feedback form\",\"Type\":0,\"ItemType\":4,\"Id\":\"e00ca8b3-f25e-4375-a3fb-737d2fbcde79\",\"Title\":\"Confirmation\",\"IsAvailable\":null,\"IsDeleted\":null}]"
}
}

 

Power Automate

Power Automate では、「HTTP リクエストの送信」を選択する必要があります。LMS365コネクタには同様のアクション「 HTTP リクエストの送信」と「HTTP リクエストの送信(プレビュー)」が表示されます。

これらのアクションの違いは、Power Automateの「HTTP要求を送信します」と「HTTP要求を送信します(プレビュー)」の違いについてをご参照ください。

Learning Module via API and Power Automate3.png

 

設定の値:

Learning Module Configuration
Configuration.Items property is JSON serialized array of LearningPathItem objects.

class LearningPathItem
{
Id: Guid;
Title: string;
ItemType: LearningPathItemType;
}

enum LearningPathItemType
{
None = 0,
Document = 1,
Scorm = 2,
Embed = 3,
Confirmation = 4,
Quiz = 5,
ExternalApp = 6
}

class Document : LearningPathItem
{
DocumentId: int;
FileId: Guid;
Url: string;
}

class Scorm : LearningPathItem
{
ScormId: Guid;
}

class Embed : LearningPathItem
{
Content: string;
EmbedType: EmbedType;
}

enum EmbedType
{
OfficeVideo = 0,
OfficeMix = 1,
YouTube = 2,
Other = 3,
Link = 4,
WebsiteUrl = 5,
RichContent = 6,
MSStream = 7,
MSForms = 8,
MSSway = 9,
LinkInIFrame = 10,
Synthesia = 11,
}

class ConfirmationItem : LearningPathItem
{
ConfirmationMessage: string;
CheckMarkMessage: string;
Type: ConfirmationItemType;
}

enum ConfirmationItemType
{
SimpleCheckBox = 0,
Authorization = 1
}

class Quiz : LearningPathItem
{
QuizId: Guid;
}