Using the LMS365 (Learn365) Connector with Microsoft Power Automate

With the LMS365 (Learn365) Connector, you can easily subscribe to events happening inside LMS365 (Learn365) applications and perform actions based on the data coming from LMS365 (Learn365) events.

To see how this works, we'll look at an example of using the LMS365 (Learn365) Connector with Microsoft Power Automate.

 

IMPORTANT   

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 (Learn365) 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 (Learn365) and send data back to it, 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.

 

Create_new_flow_in_PA

 

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 (Learn365) Connector consist of two groups of items:

  • Triggers give you the possibility to subscribe to events in LMS365 (Learn365). 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 (Learn365). 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.

 

Set_triggers_for_an_automated_cloud_flow

 

NOTE   

When you the LMS365 (Learn365) Connector for the first time, you'll need to enter your credentials for the LMS365 (Learn365) API service using an API key for both the username and password fields.

establishing_lms365_connection_in_PA

 

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.

 

Message_after_connection_established

 

4. Select New step > Add an operation and then enter LMS365 in the search field to find the available LMS365 (Learn365) 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.

 

Add_an_operation_in_PA

 

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.

 

Add_course_id_as_an_action_in_PA_flow

 

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.

 

Additional_step_for_an_operation_in_PA

 

In our example, we'll select Office 365 Outlook > Send email to receive email notifications related to the selected trigger and action.

 

Additional_step_for_an_operation_in_PA

 

For the Send email option, you'll need to complete the fields with the relevant course data using the dynamic content drop-down list.

 

Configure_send_email_action_in_PA_flow

 

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. 

 

Was this article helpful?
11 out of 13 found this helpful

Comments

Article is closed for comments.