DEV Community

Jingyi Z.
Jingyi Z.

Posted on

Creating Microsoft Graph custom connector in Power Apps

Welcome

Credit- http://m.alnafsy.com/

To creat Microsoft Graph custome connector in Power Apps, let us get acquainted with some important terms first.

What are Power Apps?

  • Power Apps is a suite of apps, services, connectors, and a data platform, that provides a rapid development environment to build custom apps for business needs.
  • Using Power Apps, one can quickly build custom business apps that connect to data stored either in the underlying data platform (Microsoft Dataverse) or in various online and on-premises data sources (such as SharePoint, Microsoft 365, Dynamics 365, SQL Server).
  • One can create three types of apps using this service: canvas, model-driven, and portal.

What are Microsoft Graphs?

  • Microsoft Graph is the gateway to data and intelligence in Microsoft 365. It provides a unified programmability model that you can use to access the tremendous amount of data in Microsoft 365, Windows, and Enterprise Mobility + Security.
  • The Microsoft Graph API offers a single endpoint to provide access to rich, people-centric data and insights in the Microsoft cloud.
  • Microsoft Graph connectors work in the incoming direction, delivering data external to the Microsoft cloud into Microsoft Graph services and applications to enhance Microsoft 365 experiences such as Microsoft Search.
  • Microsoft Graph Data Connect provides a set of tools to streamline secure and scalable delivery of Microsoft Graph data to popular Azure data stores. The cached data serves as data sources for Azure development tools that you can use to build intelligent applications.

Microsoft Graph

Credits- https://docs.microsoft.com/en-us/graph/images/microsoft-graph.png

How can Power Apps bring positive changes in the education system?

  1. One can create learning games in a cohesive system. Students can choose which subject they want to work on. They’ll demonstrate that they’ve learned the skill in question, and collect points.
  2. One can create a variety of different apps that tackle different learning processes. If there are children with dyslexia, coping strategies for the disorder can be incorporated into the program.
  3. One can create a smart tracking system to keep up with student proficiency by flagging various questions and exercises with different proficiency tags when creating them.

Pen

Credits- https://pixnio.com/free-images/2017/05/31/2017-05-31-10-23-44-900x675.jpg

What are the uses of Microsoft Graph?

One can use Microsoft Graph to:

  • Look at the next meeting and prepare for it by providing profile information for attendees, as well as information about the latest documents they're working on, and people they're collaborating with.
  • Scans one’s calendar, and suggests the best times for the next team meeting and subscribe to changes in the calendar, send an alert when one spending too much time in meetings, and provide recommendations for the ones one can miss or delegate based on how relevant the attendees are to you.
  • Help one sort out personal and work information on a phone. For example, by categorizing pictures that should go to your personal OneDrive and business receipts that should go to your OneDrive for Business and bring custom business data into Microsoft Graph, indexing it to make it searchable along with data from Microsoft 365 services.

What are custom connectors?

Connectors help make it easier for app and flow makers to connect to other apps, data, and devices in the cloud in the following ways:

  • Connection is done in a consistent, repeatable way that is discoverable by makers.
  • Connectors have actions that allow makers to control when an operation is performed.
  • Connectors can have triggers that allow automation to start when the triggering event occurs.

Create a custom connector

Steps

Prerequisites

An account on Power Apps Portal.

Let's get started!

Step 1: Create a new solution.
Go to Power Apps maker portal and make sure to be in the correct environment.

Select Solutions > + New solution and enter the following details.

Don't navigate away from this page after selecting 'Create'.

Img1

Step 2: Create a custom connector.
Go to Power Apps admin portal and make sure that you are in the correct environment.

Select Solutions and then select to open the Microsoft Graph solution that you created in Task 1: Create a new solution.

Select + New > Automation > Custom connector.

Enter Microsoft graph for Connector name.

Scroll down, enter graph.microsoft.com for Host and /v1.0 for Base URL.

Img2

Go to the Security option. Since we are just creating a custom connection, you can choose "No authentication" else any other type of authentication as per your needs.

Img4

Go to the Definition option. You can leave it as it is and move to the Code (Preview) option.

Img5

You can leave it as it is and click on "Create Connector".

Img7

Summary

Congratulations! You have created a Microsft Graph custom connector in Power App and can proceed to learn more in this area. Do leave your feedback in the comments below. Our next blog will on how to call Microsoft Graph API in Power Automate using custom connector. Stay tuned!

Next Steps

More info on overview of Microsoft Graph

List used for building a Microsoft connector

Thank You
Credits- https://cdn.pixabay.com/photo/2014/07/15/19/55/thank-you-394180_1280.png

Blog 4: call Microsoft Graph API in Power Automate using custom connector

Top comments (0)