Created on 29 February 2020
icon_unfollowing
Login to follow
ms-graph-connector-oauth-2-0

MS Graph Connector & Oauth 2.0

Stable version 0.1.0 (Compatible with OutSystems 11)
Uploaded on 29 February 2020 by 
ms-graph-connector-oauth-2-0

MS Graph Connector & Oauth 2.0

Details
Using Azure Portal, MS Graph API and OAuth 2.0 endpoints to send an email from a functional email. For example, no-reply@example.com.
Read more

A simple component to send email from application as a functional user. For example, sometimes it will be required to send email from application to the recipients with the sender email as "no-reply@example.com". 

To achieve this using Azure and MS Graph API, first we need to register an application in Azure AD. Please refer the below URL to know how to do this.

https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/howto-configure-prerequisites-for-reporting-api

Make sure "Mail.Send" API has been granted from MS Graph category in Request API Permissions page.

Steps to configure the credentials:

  • Once the app is registered successfully, copy Client Id, generate/copy Client Secret and Tenant Id
  • Open Core module
  • Go to Data tab -> Site Properties
  • Click on "AppClientId" and in the property window "Default Value" replace the copied cliend id from Azure
  • Repeat this step for Client Secret (AppClientSecret) and Tenant Id (AppTenant)
  • For FunctionalEmail property, replace the functional email configure in the Tenant in Azure
  • Publish the module
  • Update the dependency in demo app


Hurray!!! it's time to test the app :)

Note: This is a sample app done as part of my learning, so there may not be standard conventions followed for variable names, exception handling, etc. Please feel free to post your feedback so I will try to update in the next versions.

Release notes (0.1.0)
Reviews (0)
Category
Demos & samples, Other demos & samples
Tags
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 1 dependencies
Application Objects
MS Graph Connector & Oauth 2.0 has 7 AOs.
Team
Compatible with
Version 11
11.9.2 or higher
11.7.6 to 11.9.0
11.0.606 to 11.0.615
Database:
All
Asset consumers
No consumers yet.
Weekly downloads