jmprieur / consoleApp-deltaQuery-dotNet-sample

This console application demonstrates how to make Delta Query calls to the Graph API, allowing applications to request only changed data from Microsoft Graph tenants.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ConsoleApp-MicrosoftGraphAPI-DeltaQuery-DotNet

This console application demonstrates how to make Delta Query calls to the Graph API, allowing applications to request only changed data from Microsoft Graph tenants.

The sample uses a application-only permission, however delegated-permissions should also work.

How To Run This Sample

To run this sample you will need:

  • Visual Studio 2015
  • .Net 4.5
  • An Internet connection
  • An Azure Active Directory (Azure AD) tenant. For more information on how to get an Azure AD tenant, please see How to get an Azure AD tenant

Step 1: Clone or download this repository

From your shell or command line:

git clone https://github.com/microsoftgraph/ConsoleApp-DeltaQuery-DotNet

Step 2: Running this application with your Azure Active Directory tenant

Register Sample app for your own tenant

Using MSAL 1.Before you can get a token from Azure AD v2.0 or Azure AD B2C, you'll need to register an application(https://apps.dev.microsoft.com/). For Azure AD v2.0, use the app registration portal. For Azure AD B2C, checkout how to register your app with B2C. 2. Find the Application ID value and copy it to the clipboard. 3. Configure Permissions for your application - select 'Read Directory Data'. 4. Set a platform by clicking Add Platform, select Native.

Step 3: Setup sample project

  1. In Solution Explorer, select the App.config project.

    a. For the AppPrincipalId key, replace To be filled in with the application ID of your registered Azure application.

    b. For the AppPrincipalPassword key, replace To be filled in with the key of your registered Azure application.

    c. For the TenantDomainName key, replace To be filled in with domain name of your organization.

    d. For the EntitySet key , you can use delta query supported MS-graph entities e.g users ,groups etc. as value.

Contributing

If you'd like to contribute to this sample, see CONTRIBUTING.MD.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Questions and comments

We'd love to get your feedback about the Microsoft Graph Webhooks sample using WebJobs SDK. You can send your questions and suggestions to us in the Issues section of this repository.

Questions about Microsoft Graph in general should be posted to Stack Overflow. Make sure that your questions or comments are tagged with [MicrosoftGraph].

If you have a feature suggestion, please post your idea on our User Voice page, and vote for your suggestions there.

Additional resources

Copyright (c) 2017 Microsoft Corporation. All rights reserved.

About

This console application demonstrates how to make Delta Query calls to the Graph API, allowing applications to request only changed data from Microsoft Graph tenants.

License:MIT License


Languages

Language:C# 100.0%