With the LMS365 connector, you can easily subscribe to events happening inside LMS365 applications and perform actions based on the data coming from LMS365 events.
To see how this works, we'll look at an example of using the LMS365 connector with Microsoft Power Automate.
You need to use an API key with Full control permissions to create flows with Microsoft Power Automate. If you use an API key with Read only permissions, you will receive the following error: “The response is not in a JSON format”.
Follow this link to find templates for flows in LMS365 created with Microsoft Power Automate.
You can also create your own unique flows with Microsoft Power Automate that will react to the events happening inside LMS365 and send data to LMS365 if needed.
Let’s create a simple test flow, which will react to the Course Published event, where it'll send an email with course information to specified users.
To create your own flow:
1. Go to https://powerautomate.microsoft.com and sign in.
2. Select the My Flows section > expand New flow > under Build your own from blank, select Automated cloud flow.
3. Give your flow a name. Search for LMS365 in the Choose your flow's trigger field to see all trigger actions related to the learning system.
The LMS365 connector consist of two groups of items:
- Triggers give you the possibility to subscribe to events in the LMS365. Each trigger has a title that describes when the event is triggered. Usually, that is the starting point of the flow.
For example, the trigger When training has been published to a catalog means that the event is triggered when the status of any course changes to Published and is now available in the catalog.
Triggers are configured at this step.
- Actions give you the possibility to affect LMS365. These are the set of predefined API calls to the LMS365 service. For example, Enroll user to training enables you to enroll a user in a specific course. Triggers are configured during step 4 of this article.
After a trigger is selected, the Create option becomes active.
When you the LMS365 connector for the first time, you'll need to enter your credentials for the LMS365 API service using an API key for both the username and password fields.
After the connection is set, you'll be informed that your flow only has a starting point and that you need to add more steps.
4. Select New step > Add an operation and then enter LMS365 in the search field to find the available LMS365 connector action.
In our example, we want to get information about a course that has been published so we select the Get course details action.
5. The Actions block will be added to the flow. Here, you need to specify the Course Id value in order to get the information about the specific course. To do this, select the Course Id field to open a drop-down menu of available dynamic content from the apps and connectors used in this flow.
For our case, we'll search for Course Id.
After selecting Course Id, the fields differ according to the selected dynamic content. At this step, you can choose what to do with the data returned by the Get course details action by adding a new action, if needed.
In our example, we'll select Office 365 Outlook > Send email to receive email notifications related to the selected trigger and action.
For the Send email option, you'll need to complete the fields with the relevant course data using the dynamic content drop-down list.
6. When all the fields are configured, you're ready with the flow.
In our example, the flow is triggered when a course has been published. Detailed course information is collected and an email that contains the course description is sent to the specified recipient.
The logic and approach are the same for all other cases. The same functionality is provided by Microsoft Power Apps and Microsoft Azure Logic Apps.