Sage 100 Power BI without the ODBC driver
Load Sage 100 data into Power BI from a JSON or CSV web source instead of the ODBC driver, with Power Query M code that also survives scheduled refresh.
The usual way to get Sage 100 into Power BI is the ODBC driver: install it on the analyst's machine, set up the SOTAMAS90 DSN, match 32-bit or 64-bit, and install an on-premises data gateway so the Power BI service can refresh. It works, and it breaks in predictable places: a new laptop without the driver, a Sage upgrade, a gateway that stops.
A web data source avoids most of that. Power BI calls an HTTPS URL that returns JSON or CSV, and refreshes it on schedule from the cloud.
ODBC vs a web source
| ODBC driver | JSON / CSV web source | |
|---|---|---|
| Install on each analyst machine | Driver + DSN | Nothing |
| Bitness problems | Yes, 32 vs 64-bit | No |
| Scheduled refresh in Power BI service | Needs an on-premises gateway | Works from the cloud |
| Query language | SQL against Sage tables | URL parameters |
| Joins | You write them (slow on big tables) | Pre-shaped endpoints |
Step 1: load a table with Power Query
In Power BI Desktop choose Get data → Blank query, open the Advanced Editor and paste this. It loads open AR invoices older than 60 days from the sandbox.
let
Source = Json.Document(
Web.Contents(
"https://api.greenbar.octor.top",
[
RelativePath = "v1/companies/ABC/invoices/open",
Query = [overdue_days_gt = "60", limit = "100"],
Headers = [Authorization = "Bearer sk_test_demo"]
]
)
),
Rows = Table.FromRecords(Source[data]),
Typed = Table.TransformColumnTypes(Rows, {
{"invoice_date", type date}, {"due_date", type date},
{"balance", Currency.Type}, {"days_overdue", Int64.Type}
})
in
TypedNotice the URL is split into a fixed base (https://api.greenbar.octor.top) plus RelativePath and Query. That is deliberate: the Power BI service only allows scheduled refresh on web sources whose base URL is static. A URL built by concatenating strings often refreshes in Desktop and fails in the service with "dynamic data source".
Step 2: or use CSV
Every list endpoint also answers format=csv, which some teams prefer because the columns arrive flat:
let
Raw = Web.Contents("https://api.greenbar.octor.top",
[RelativePath = "v1/companies/ABC/ar-aging", Query = [format = "csv"],
Headers = [Authorization = "Bearer sk_test_demo"]]),
Csv = Csv.Document(Raw, [Delimiter = ",", Encoding = 65001]),
Table = Table.PromoteHeaders(Csv, [PromoteAllScalars = true])
in
TableStep 3: paging
Endpoints return up to 100 rows per call with a next_cursor. For larger tables, use List.Generate to follow the cursor until has_more is false, then combine the pages with Table.Combine. Keep page sizes at the maximum to reduce calls.
Step 4: scheduled refresh
- Publish the report to the Power BI service.
- In the dataset settings, set the data source credentials to Anonymous (the API key travels in the header you wrote) and allow the privacy level the API needs.
- Schedule refresh. No gateway is needed because the source is on the internet.
If the service refuses the test connection while Desktop works, enable "Skip test connection" in the data source settings; the header-based key is only sent on real requests.
A model that finance actually uses
A useful first report needs three tables: customers (/customers), open invoices (/invoices/open) and the aging summary (/ar-aging). Relate invoices to customers on division plus customer number. Build visuals for total open AR, 61+ days overdue by customer, and invoices due this week. That covers most of what controllers export to Excel every Monday.
curl "https://api.greenbar.octor.top/v1/companies/ABC/ar-aging?format=csv" \ -H "Authorization: Bearer sk_test_demo"
A REST API for Sage 100, self-serve
One HTTPS endpoint and a typed SDK instead of BOI scripts and ODBC DSNs on every customer's server. Read access is free during the beta.
Join the waitlist