Pre-Built Tooling
Category | Details |
---|---|
Authentication | OAuth 2.0 (Authorization Code with refresh tokens) |
Two-Way Sync | No |
Events Supported | No |
Realtime | Polling |
Supports Rate Limiting | Yes (Microsoft Graph API limits apply) |
Authentication Scopes Supported | openid , profile , email , user.read , Mail.send , offline_access , Files.ReadWrite.All , Sites.ReadWrite.All |
Objects Supported
Alloy Automation supports syncing the following objects from Microsoft Excel: Based on the Microsoft Graph Excel API, typical objects include:- Workbooks
- Worksheets
- Tables
- Ranges
- Charts
- Named Items
Set Up Guide
Trial Access
Question | Answer |
---|---|
Offers free trial? | Yes. Microsoft offers free personal Microsoft accounts with limited OneDrive storage and Excel Online access. Create Microsoft account |
Requires paid sandbox | No. Free Microsoft accounts can be used for testing and development. |
Requires partnership to obtain authentication? | No, but you must register an application in the Azure Portal. |
Authentication (OAuth 2.0)
For customers who want to completely whitelabel their OAuth experience, you can provide your own developer keys instead of using Alloy Automation’s.Create your OAuth app (Azure Portal)
- Go to Azure Portal (https://portal.azure.com/) and sign in with your Microsoft account.
- Navigate to Azure Active Directory → App registrations → New registration.
- Fill in your application details:
- Name: Your application’s name
- Supported account types: Choose “Accounts in any organizational directory and personal Microsoft accounts” for broad access
- Redirect URI: Select “Web” and enter
https://api.runalloy.com/api/strategy/connector/microsoftExcel/callback
- Click Register to create the application.
- Note your Application (client) ID from the Overview page.
- Navigate to Certificates & secrets and click New client secret.
- Add a description and expiration period, then click Add.
- Copy the Value of the client secret immediately (it won’t be shown again).
- Navigate to API permissions and click Add a permission.
- Select Microsoft Graph and add the following delegated permissions:
Files.ReadWrite
orFiles.ReadWrite.All
- Read and write filesSites.ReadWrite.All
- Read and write SharePoint sites (for shared workbooks)User.Read
- Read user profileoffline_access
- Maintain access to data
- Add the following permissions for email capabilities if needed:
Mail.Send
- Send emails
- Click Grant admin consent if you have admin privileges for organizational accounts.
- Copy your Application (client) ID and Client Secret into Alloy Automation.
Important Notes
- Excel files must be stored in OneDrive or SharePoint to be accessed via the API.
- Local Excel files (.xlsx) cannot be accessed - files must be cloud-hosted.
- The Graph API supports Excel Online but not Excel for Desktop through the API.
Use Cases
1) Automated report generation
Extract data from your application and populate Excel templates with charts and formatted tables, automatically saving reports to SharePoint or OneDrive for team access.2) Spreadsheet-based data collection
Read data from Excel workbooks used by non-technical users as data entry forms, validating and importing the data into your database or business application.3) Financial model automation
Update Excel-based financial models with real-time data from accounting systems, automatically recalculating projections, budgets, and forecasts based on latest actuals.4) Collaborative data synchronization
Sync data between your application and shared Excel workbooks in SharePoint, enabling teams to collaborate on data while maintaining a system of record in your platform.5) Template-based document generation
Use Excel as a templating engine for generating invoices, reports, or data exports with custom formatting, formulas, and charts that are then distributed via email or stored in the cloud.API Gotchas
- Excel files must be stored in OneDrive or SharePoint to be accessible via the Microsoft Graph API. Local files or files in other storage systems cannot be accessed, which surprises many developers expecting broader file system access.
-
The API uses session-based access for performance. Creating a session (
/createSession
) is recommended for multiple operations on the same workbook, but sessions expire after a period of inactivity. Always implement session refresh logic. -
Cell address notation is strict and must use A1-style references (e.g.,
A1:D10
). R1C1 notation is not supported. Range addresses are case-insensitive but must be properly formatted or the API returns validation errors. -
Formula calculation can be delayed. When writing formulas to cells, the calculated values may not be immediately available. Use the
/calculate
endpoint to force synchronous calculation if you need immediate results.
For questions or troubleshooting, contact support@runalloy.com.