https://github.com/waldekmastykarz/sample-solution-gallery-connector-node
Microsoft Graph connector that ingests content from the Sample Solution Gallery
https://github.com/waldekmastykarz/sample-solution-gallery-connector-node
microsoft-365 microsoft-graph microsoft-graph-connector nodejs
Last synced: about 1 month ago
JSON representation
Microsoft Graph connector that ingests content from the Sample Solution Gallery
- Host: GitHub
- URL: https://github.com/waldekmastykarz/sample-solution-gallery-connector-node
- Owner: waldekmastykarz
- License: mit
- Created: 2023-09-26T11:22:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-02T12:56:48.000Z (over 2 years ago)
- Last Synced: 2025-10-19T00:00:23.817Z (8 months ago)
- Topics: microsoft-365, microsoft-graph, microsoft-graph-connector, nodejs
- Language: JavaScript
- Homepage: https://adoption.microsoft.com/en-us/sample-solution-gallery/
- Size: 395 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sample Solution Gallery Microsoft Graph connector
Microsoft Graph connector that allows you to ingest samples from the Sample Solution Gallery into your Microsoft 365 tenant.
This connector is meant to be run from your local machine.
## Prerequisites
- Microsoft 365 tenant
- Sufficient quota for ingesting external items
- Node@18
## First-time setup
```sh
# clone the repo
# make the setup script executable
chmod +x ./setup.sh
# execute setup script to create Entra ID app
./setup.sh
# restore dependencies
npm i
# create Microsoft Graph connector and provision schema
npm run createConnector
# load content
npm run loadContent
```
## Configuration options
`--no-fromCache`: specify to retrieve the latest content from the API. By default, the connector will load the content stored in the `cache.json` file, to avoid unnecessary API calls in case you'll want to load the same content multiple times, eg. `npm run loadContent -- --no-fromCache`.
## How it works
Each time you load content using the `loadContent` script, the connector will store in the `latestChange.txt` the date of the most recently updated sample that it loaded. The next time you load content, the connector will only extract content newer than the date stored in the `latestChange.txt` file. If you want to reload all content, either clear the contents of the `latestChange.txt` file or delete it altogether.