This sample contains a Microsoft Graph connector that shows how to Ingest M365 Roadmap content in Microsoft 365 using Microsoft Graph connectors. For each file, it M365 Roadmap content, maps them to the external connection's schema and ingests the content retaining the content and metadata. The ingested content is set to be visible to everyone in the organization.
Version | Date | Comments |
---|---|---|
1.0 | February 18, 2024 | Initial release |
1.1 | May 14, 2024 | Updated README.md, resultsLayout Json |
1.2 | June 11, 2024 | Updated README.md, upgraded Azure.Identity package |
- Microsoft 365 Developer tenant
- .NET 8
- Microsoft PowerShell
- Created and Configure Microsoft Entra app registration. Grant it the following API permissions
- ExternalConnection.ReadWrite.OwnedBy
- ExternalItem.ReadWrite.OwnedBy
- Clone this repository
- add the information about the Entra ID app in user secrets
- dotnet user-secrets init
- dotnet user-secrets set "EntraId:ClientId" "[application id]"
- dotnet user-secrets set "EntraId:ClientSecret" "[secret value]"
- dotnet user-secrets set "EntraId:TenantId" "[directory (tenant) id]"
- Build the project:
dotnet build
- Change the working directory to the path to where the project file is present.
- Create the external connection:
dotnet run -- provision-connection
(this will take several minutes) - Ingest the content:
dotnet run -- load-content
- Create result type with default settings and the external connection you've just created
- Use the
resultLayout.json
file for the Adaptive Card code
- Browse to the admin center then Search & intelligence then update the result layout with the resultLayout json file in the assets folder. You can modify the resultLayout using adaptive cards designer to have your custom resultLayout.
This sample shows how to Ingest M365 Roadmap content in Microsoft 365 using Microsoft Graph connectors using C# and .NET