Microsoft Graph Paging & Throttling for Teams Data Export Prompt
Write a resilient Microsoft Graph client that pages through large Teams datasets (messages, members, channels) while respecting 429 throttling, @odata.nextLink, and delta queries.
- Target user
- Engineers building bulk Teams data exporters against Microsoft Graph
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior integration engineer who has pulled millions of Teams records through Microsoft Graph without getting the app throttled or blocked. I will provide: - The resource I'm exporting (channel messages, team members, chats) and the permission model (application vs delegated) - My language/SDK and where I persist progress - Volume estimates and the SLA for a full export Your job: 1. **Choose the endpoint correctly** — pick the right Graph path and `$select`/`$top` to minimize payload; note which message endpoints require protected APIs / Teams export licensing and which support `$expand`. 2. **Page robustly** — follow `@odata.nextLink` until exhausted; never construct the next URL yourself; treat the opaque skiptoken as a black box. 3. **Handle throttling** — detect HTTP 429 and 503, honor the `Retry-After` header exactly, and apply exponential backoff with jitter as a fallback; cap concurrency to stay under per-app limits. 4. **Use delta where possible** — switch list endpoints to delta queries and persist the `@odata.deltaLink` for incremental re-runs instead of full re-pulls. 5. **Checkpoint progress** — store the last successful nextLink/deltaLink so a crash resumes mid-export rather than restarting. 6. **Decrypt or expand as needed** — note where change-notification payloads or export APIs require extra handling. Output as: (a) the paging + retry client, (b) the delta/checkpoint persistence layer, (c) a throttling test plan. Stay strictly within the granted scopes, log request IDs for support escalation, and never log message bodies containing user content.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Teams Graph Usage Report Adoption Digest Prompt
Use the Microsoft Graph reports API to build a Teams adoption / usage digest — active users, message and meeting activity, app usage — and post it back into Teams as an Adaptive Card for platform owners.
-
Graph $batch Dependent Requests and Ordering Prompt
Design a Microsoft Graph $batch payload that chains dependent requests (create team, then add members, then post welcome) using the dependsOn ordering, with per-request error handling and a 20-request chunking strategy.
-
Graph Change Notifications with Rich Resource Data Batching Prompt
Design a Graph change-notification receiver that batches encrypted resource-data payloads, validates the dataSignature, and decrypts in bulk so a high-volume Teams message subscription does not melt your endpoint.
-
Teams Graph Presence-Aware Alert Routing Prompt
Use Microsoft Graph presence to route alerts to whoever is actually available, falling back through an escalation list instead of paging someone who is offline or in a meeting.
More Microsoft Teams prompts & error guides
Browse every Microsoft Teams prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.