Learn365 webhook integration with Microsoft Azure Logic Apps and Microsoft Power Automate

Learn365 integrates with Microsoft Azure Logic Apps and Microsoft Power Automate using webhook connector.

See this article to get acquainted with the new LMS365 Connectors.

Logic Apps provide a way to simplify and implement scalable integrations and workflows in the cloud. 

Logic Apps can be integrated into Learn365 using webhook connector.

The same functionality is provided by Microsoft Power Automate.

The example below was created using Azure Logic App while you are free to go with MS Power Automate because they use the same scheme.

 

Register webhook

To register a webhook you need to create a Logic App instance in your Azure environment. Create a new Logic App and select "HTTP Webhook" option as a starting point.

 

 

Fill in the form with the following parameters:

Configuration Value Comment
Subscribe body

{

"WebHookUri" : "<CALLBACK URL>",

"Filters":[<FILTERS>]

}

<CALLBACK URL> is provided via the Logic App UI (see the screenshot below).

<FILTERS> is parameter for events which user subscribe to (comma-separated). For example: "CourseEnrollment","CourseUnenrollment"

Unsubscribe body

{

"WebHookUri" : "<CALLBACK URL>"

}

Only <CALLBACK URL> is required.
Subscribe URI https://api.365.systems/webhooks/subscribe  
Unsubscribe URI https://api.365.systems/webhooks/unsubscribe  
Unsubscribe headers

{

"Authorization" : "Basic @{base64('<API KEY>:<API KEY>')}"

}

The same as for subscription.
Subscribe headers

{

"Authorization" : "Basic @{base64('<API KEY>:<API KEY>')}"

}

Where <API KEY> is the key provided by LMS admin.

Note that using @base64('<value>') util is a must in order to make Authorization work.

Subscribe method POST  
Unsubscribe method POST  

After all parameters are configured you can select what action should be taken after an even defined in Filters has happened:

You can select from multiple variants available. In the provided example we select an Email action: email will be sent with the parameters configured. Please note that you can embed dynamic "Body" parameter in actions which is the data from Learn365 that is attached to each trigger event (see LMS365 Web Hooks Format).

 

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

Comments

  • Avatar
    kathiravan.k kathir

    i have one problem while integrating webhook in logic app its response waiting state for long time how to resolve

    Comment actions Permalink
  • Avatar
    Grzegorz Wilczek

    Is the URI part: https://api.365.systems common for every installation of LMS365? Or does every client use his own domain.sharepointonline.com?

    Comment actions Permalink

Article is closed for comments.