Skip to main content
Microsoft Graph connectors Microsoft Graph Microsoft 365 Copilot

Ingest REST Countries content using PowerShell

Last modified on November 28, 2023

This sample contains a Microsoft Graph connector built in PowerShell that shows how to ingest REST Countries (https://restcountries.com/) content. For each country, it extracts the metadata from the REST API (https://restcountries.com/v3.1/all), 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.

View on GitHub Download from GitHub

References

Microsoft Graph connectors overview

Learn more what Microsoft Graph connectors are and when you'd use them.

Build your first custom Microsoft Graph connector

Learn how to build your first custom Microsoft Graph connector using .NET.

Microsoft 365 Adoption - Get Started