The Developer's Guide to Overcoming Outlook API Restrictions

Bridging the Gap with Graph API
When Office.js cannot read a specific MAPI property or header, your add-in can call a secure backend that uses the Graph API to fetch the full message metadata in JSON format.
For large attachments (>25MB), use the Graph API's 'Upload Session' feature rather than trying to process the binary data within the browser-based Task Pane.
Handling Large Attachments
The standard Office.js attachment API has size limits. For enterprise file transfers, an asynchronous backend upload is mandatory.
const uploadSession = await client.api('/me/messages/{id}/attachments/createUploadSession').post();
// Then upload the file in chunks...Summary
Every restriction in Office.js has a workaround if you leverage the full power of Microsoft Graph.
Written by
NexaAI Solutions