LMS365 Webhooks Integration with Microsoft Azure Logic Apps and Microsoft Flow

LMS365 integrates with Microsoft Azure Logic Apps and Microsoft Flow using Webhook connector.

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

Logic Apps can be integrated into LMS365 using web hook connector.

The same functionality is provided by Microsoft Flow.

The example below was created using Azure Logic App while you are free to go with MS Flow 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 LMS365 which is attached to each trigger event (see LMS365 Web Hooks Format).

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

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

  • 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?

Please sign in to leave a comment.