Key points
- An ERP connects to other systems in 4 ways: scheduled file exchange, a point-to-point API connection, an integration platform (iPaaS) and event-driven messaging.
- Choose a pattern for each data flow from 4 inputs: records per day, how soon the receiving system needs them, how often the format changes and how many systems consume the data.
- Every record type gets 1 owning system. A vendor or a cost code is created there and copied outward, and the receiving systems lose the permission to create it.
- Dynamics 365 Business Central online returns HTTP 429 past 6,000 OData requests per user in 5 minutes, and its webhook subscriptions expire after 3 days unless renewed (Microsoft Learn, read December 2026).
- Microsoft Entra limits a client secret to 24 months and recommends less than 12 (Microsoft Learn, November 2026), so an integration that signs in with a secret has an expiry date that a named person has to track.
How should you connect an ERP to your other systems?
Pick 1 of 4 patterns for each data flow: scheduled file exchange, a point-to-point API connection, an integration platform or event-driven messaging. Records per day, timing, format changes and the number of consuming systems decide which. Then give every record 1 owning system, and every connection an error queue, an alert, its own account and a 1-page runbook.
An ERP (enterprise resource planning system) holds your general ledger, payables, receivables, inventory and job or production costs. A data flow is 1 kind of record moving in 1 direction between 2 systems, such as approved timesheets going from the field app to payroll.
| Fact | Detail | Source |
|---|---|---|
| API rate limit, Dynamics 365 Business Central online | 6,000 OData requests per user in a 5-minute sliding window. Past the limit the service returns HTTP 429, Too Many Requests. | Microsoft Learn, operational limits, April 8, 2025 |
| Webhooks, Business Central | A subscription expires after 3 days unless renewed. More than 1,000 changes within 30 seconds arrive as 1 collection notification. | Microsoft Learn, March 23, 2026 |
| Endpoints built on Microsoft pages, Business Central | A Microsoft page is a screen from an app that Microsoft publishes. From version 29.0 (2026 release wave 2) it can no longer be exposed as a SOAP endpoint, and from version 30.0 (2027 release wave 1) it can no longer be exposed as an OData endpoint. Microsoft's advice is to copy the page into your own extension. | Microsoft Learn, deprecated features, September 1, 2026 |
| Client secrets, Microsoft Entra ID | Lifetime is capped at 24 months. Microsoft recommends less than 12, and a certificate in place of a secret in production. | Microsoft Learn, November 12, 2026 |
What are the 4 patterns, and how does each fail?
Each pattern has a typical failure, and that failure tells you what to monitor.
| Pattern | How it works | Fits when | How it fails |
|---|---|---|---|
| 1. File exchange | 1 system exports a CSV, XML or EDI file on a schedule. The other picks it up from an SFTP folder or receives it over AS2. | The other party accepts only files, the data is needed daily or hourly, or an older ERP has import routines and no API. | Silently. The file does not arrive, arrives empty or arrives twice, and nobody is told. |
| 2. Point-to-point API | System A calls system B's API directly, on a timer or when a user saves a record. | 2 systems, 1 or 2 flows, and both have documented APIs. | An expired credential, a rate limit or a retired API version. 6 systems connected in pairs can mean 15 connections to maintain. |
| 3. Integration platform (iPaaS) | A hosted service (integration platform as a service) holds the connectors, the field mappings, the schedule, the retries and the run history. Power Automate and Azure Logic Apps are 2 examples. | 3 or more systems, mappings that change a few times a year, and a need for 1 screen that shows what failed. | By neglect. A flow built under an employee's account stops when that account is disabled. |
| 4. Event-driven | The source publishes an event (invoice posted, load delivered) to a queue or sends a webhook. Each consumer processes it at its own pace. | Several systems need the same change within seconds or minutes, or volume arrives in bursts that would pass an API limit. | Twice or out of order. A queue can deliver a message more than once, so each consumer has to recognize a repeat. |
- API
- Application programming interface: the documented way 1 program reads or writes another's data.
- Webhook
- A message a system sends to a web address you give it when a record changes.
- EDI
- Electronic data interchange: fixed-format business documents exchanged between companies. In the X12 standard, an 850 is a purchase order, an 810 an invoice, an 856 a ship notice and a 204 a motor carrier load tender.
- Idempotent
- Safe to repeat. Sending the same invoice message twice creates 1 invoice.
- Service account
- An account that a program signs in with. No person uses it.
Test a webhook at production volume. Business Central retries an unreachable subscriber over 36 hours when the subscriber answers 408, 429 or a 5xx code, and deletes the subscription on any other answer. Its Power Automate connector cannot process a collection notification, so a month-end import of more than 1,000 records does not trigger the flow (Microsoft Learn, March 2026).
How do you choose a pattern for each data flow?
Rate each flow on 4 inputs: records per day, how soon the receiving system needs them, how often the format or the rules change, and how many systems consume the data. Running 2 or 3 patterns side by side is normal.
Where a vendor builds a connector between 2 of your systems, try it before you build anything: the vendor maintains it through both products' upgrades. The table is for the flows no vendor connector covers.
| If the flow looks like this | Start with | Reason |
|---|---|---|
| Under 500 records a day, needed by the next morning, format stable for years | File exchange | A nightly file costs the least to build, and a controller can open it and check it. |
| A trading partner dictates the format, such as an X12 850 | File exchange through an EDI provider or AS2 | The partner's specification decides. Your choice is who translates the file for the ERP. |
| 2 systems, 1 or 2 flows, needed within minutes, both APIs documented | Point-to-point API | Nothing in the middle to license or learn. A third flow triggers a review. |
| 3 or more systems, or mappings that change a few times a year | Integration platform | Mappings change in 1 place, and 1 run history shows every failure. |
| Thousands of records an hour, bursts at shift end or month end, or several systems reacting to 1 change | Event-driven, with a queue | The queue holds the burst and releases it to the ERP at a rate under its API limit. A new consumer does not touch the source. |
| The ERP has no API and cannot be upgraded this year | File exchange, with the import folder watched by a script or an integration platform | Do not write to the ERP's database tables directly: that skips its posting rules and can break at the next update. |
| Flow | Volume and timing | Pattern | Why |
|---|---|---|---|
| Estimate to job budget | About 10 a month, at contract award | File exchange | The estimator exports a CSV and the project accountant imports it. |
| Vendors and cost codes, ERP to project management | A few changes a day, wanted within the hour | Integration platform, every 15 minutes | The ERP owns both records, and the cost code list changes with every new job. |
| Approved timesheets, field app to payroll | 600 lines on Monday, due before the noon payroll cut-off | Integration platform, with a queue in front | A rate limit slows the load without losing lines. An alert fires at 10:00 if lines are missing. |
| Payment file, ERP to the bank | 1 file per cheque run | File exchange over the bank's SFTP | The bank sets the format. A second person releases the file. |
Illustrative figures. The result is 2 file flows and 2 platform flows.
For the flows of a specific industry, see connecting estimating, project management and accounting in construction and connecting a TMS, a WMS and an ERP (transportation management, warehouse management and ERP systems). When a customer asks for EDI and a carrier offers an API, see EDI or API.
Which system owns each record?
Each record type gets exactly 1 owning system, where it is created and edited. Every other system receives a copy and cannot change the owned fields. Settle this before anyone maps a field.
A common failure starts with a project manager who adds a vendor in the project management platform because the ERP was slow that day. The sync creates a second vendor in the ERP, and payables now holds 2 records for 1 company with different banking details. Finance cannot tell an honest duplicate from a fraudulent change of bank account.
| Record | Owner | Copied to | Rule |
|---|---|---|---|
| Vendors and banking details | ERP | Project management, purchasing | Created in the ERP after the payables check. Read-only everywhere else. |
| Jobs, phases and cost codes | ERP | Project management, timesheets, estimating | A job is opened in the ERP at award. Its number never changes. |
| On-hand inventory by bin | WMS | ERP, as totals by warehouse | Nobody adjusts stock in the ERP. |
| Loads, stops and proof of delivery | TMS | ERP receivables, customer portal | The ERP invoices from the delivered load. A rate is corrected in the TMS and sent again. |
| Hours worked | Timesheet or field app | Payroll, job cost | Locked on supervisor approval. A correction is a new entry. |
Store the owner's record ID in every copy and match on it, because names and descriptions get edited. Then remove the create and edit permissions for owned records in the receiving systems.
What happens when a message fails?
A well-built connection retries the temporary failures, holds the permanent ones where a person can see them, and tells a named team the same day.
- Retry with a growing delay
- A timeout, an HTTP 429 or a 5xx response is usually temporary. Wait, try again and lengthen the wait each time. Stop after a set number of attempts.
- Make a repeat harmless
- A retry can deliver a record twice when the first attempt succeeded and only the reply was lost. Send the source system's record ID with every message, and have the receiver look for it before it creates anything.
- Hold what cannot be processed
- A record that fails validation, such as a closed job or an unknown cost code, fails on every retry. Move it to an error queue with the reason attached. Azure Service Bus moves a message to its dead-letter queue after 10 delivery attempts by default and never empties that queue by itself (Microsoft Learn, 2026).
- Reconcile counts and totals daily
- Each morning, compare the number of invoices and their dollar total that left the billing system with what arrived in the ERP.
- Alert on silence
- A file that never arrives produces no error. Set an alert for the absence of an expected run, such as no timesheet file by 10:00 on Monday.
Read your ERP's limits before you size a flow. A month-end job that posts 20,000 journal lines to Business Central online as 20,000 separate requests can pass the limit of 6,000 requests in 5 minutes. The same lines sent as OData $batch requests of 100 operations each, the maximum, are 200 requests (Microsoft Learn, April 2025). Test the batch size in a sandbox first: Microsoft warns that a batch that is too large times out.
How do you secure the accounts an integration uses?
Give each integration its own non-human account with the minimum permissions for its flows, a credential that expires and a named owner. Never run a connection under a person's login.
An integration account cannot answer a multi-factor prompt, often has no lifecycle process and has to store its credential somewhere. Microsoft gives those 3 reasons for rating these accounts at higher risk of compromise (Microsoft Learn, March 2026). CIS Controls v8.1 names service accounts in the scope of Control 5, Account Management.
- 1 account or app registration per integration, named for its job, such as
svc-timesheets-to-payroll. A sharedintegrationlogin hides which flow did what. - OAuth 2.0 where the system supports it. Business Central's service-to-service sign-in uses the client credentials flow, set up on its Microsoft Entra applications page.
- Least privilege inside the ERP. Business Central does not let an application hold the SUPER permission set. In any ERP, the timesheet flow posts time entries and cannot edit vendors.
- A certificate in place of a client secret for production, as Microsoft recommends. Where you use a secret, record its expiry date the day you create it and set a reminder 30 days ahead.
- Credentials kept in a vault such as Azure Key Vault, never in a script, a spreadsheet or an email.
- Where the calls come from fixed addresses, a rule that blocks the account everywhere else. Conditional Access for workload identities does this for single-tenant service principals and needs Workload Identities Premium licences.
- A review every month. Open Entra ID > Monitoring & health > Sign-in logs > Service principal sign-ins, and ask the owner about any integration identity that is missing from the list. Entra ID keeps sign-in logs for 30 days with a P1 or P2 licence and 7 days with the Free edition (Microsoft Learn, January 2026).
What should the documentation for each connection contain?
Write 1 page per flow, and keep it where finance and IT can both open it.
- Flow name and direction
- Example: approved timesheets, field app to payroll
- Business and technical owners
- Who is told when it fails, and who fixes it
- Pattern and tool
- File, direct API, integration platform or events, and the product used
- Schedule and normal volume
- Example: nightly at 02:00, about 200 records per run
- Record owner and matching key
- Which system owns the record, and which ID links the copies
- Field mapping
- Where the mapping is stored, and the date it last changed
- Account used
- Service account or app registration, its permissions and its credential expiry date
- Errors and alerts
- Where rejected records go, who clears them and which mailbox gets the alert
- Manual fallback
- What staff do while the flow is down, and after how long
- API version and vendor contacts
- The version in use, and a support contact for each side
Put 1 summary sheet in front of the pages: every flow in a row, with its owner, pattern, account and credential expiry date. Keep the mappings and any scripts in a repository, or in the platform's export, under an account your company owns.
Where do AI agents fit?
An AI agent is 1 more consumer of the connections you already have. It reads and writes through the same APIs, under the same ownership rules, and it is most useful on the exceptions that a fixed mapping cannot handle.
An agent can work the error queue: read a rejected invoice, find that 2 digits of the purchase order number are transposed, propose the match and hold it for a person to approve. Volume work stays with the fixed flows, which cost less per record and behave the same way every run.
The Model Context Protocol (MCP) is a standard way to offer a system's functions to an AI application as tools. An MCP server in front of your ERP exposes the API calls an integration platform would make. See AI agents and MCP in plain terms and securing AI agents.
- The agent gets its own service account, with the permissions of 1 flow.
- It never writes to an owned field in a receiving system.
- Anything that moves money, changes banking details or deletes a record waits for a named approver.
- Every action it takes is written to the same run history as the other flows.
8 questions to ask an ERP or integration vendor
Ask these before you sign for an ERP, an add-on or an integration build.
- Which of our record types can your API read, which can it create or update, and where is that documented?
- What are the rate limits, per user and per environment, and what does the API return when we pass them?
- Do you send webhooks or events, for which records, and how many times do you retry a failed delivery?
- How does an integration sign in (OAuth 2.0 client credentials, an API key or a named user), and can its account be limited to specific records and actions?
- Is there an idempotency key or an external ID field that rejects a repeated request?
- For how long do you support an API version, and how much notice do you give before you retire it?
- For file exchange, which formats and which transport (SFTP or AS2) do you accept, and do you return a 997 functional acknowledgment?
- If you build the connection, who owns the code, the mappings and the accounts, and what do we receive at handover?
Get the answers to questions 2, 3 and 6 in writing. A vendor can change rate limits, retry behaviour and version support after the sale.
What to do on Monday
Start with an inventory of the flows you already have. The first 3 steps take 1 person about 2 weeks of part-time work and need no purchase. The durations are an example for about 10 flows.
List every flow
Ask finance, operations, payroll and IT what moves between systems, including the spreadsheet someone re-keys every Friday. Use 1 row per flow: source, destination, record, volume and timing.
Days 1 to 3
Find out how each flow runs
For each row, record the pattern, the tool, the account it signs in with and who built it. Read the expiry date of each credential in the Microsoft Entra admin center, under App registrations > Certificates & secrets.
Days 3 to 5
Write the ownership table
1 owner per record type, agreed by the controller and the operations lead. Mark every place where 2 systems can both create the same record.
Week 2, 2 hours
Rate each flow
Check 3 things: you would know within a day if it stopped, it runs on a service account, and a page explains it. A flow that misses any of the 3 goes on the fix list.
Week 2, half a day
Close the cheapest gaps first
Move alerts to a shared mailbox, put credential expiry dates in a calendar and replace personal logins with service accounts.
Weeks 3 and 4
Decide on the rest
Where 3 or more systems are connected in pairs, or staff re-key the same record, compare the cost of an integration platform with the hours spent today.
Week 5
If you want the work done for you, our ERP and business systems integration service covers the record ownership table, the field mapping and the build, and API and workflow automation covers flows built on Power Platform. Projects are a fixed fee quoted in writing before work starts, and the accounts are registered in your company's name.
Sources
- Microsoft Learn, Operational limits for Business Central online, April 8, 2025
- Microsoft Learn, Working with API limits in Business Central, November 13, 2024
- Microsoft Learn, Working with webhooks in Business Central, March 23, 2026
- Microsoft Learn, Business Central deprecated platform features, September 1, 2026
- Microsoft Learn, Using service-to-service authentication, June 20, 2025
- Microsoft Learn, Add and manage app credentials in Microsoft Entra ID, November 12, 2026
- Microsoft Learn, Conditional Access for workload identities, March 24, 2026
- Microsoft Learn, Microsoft Entra data retention, January 6, 2026
- Microsoft Learn, Service Bus dead-letter queues, July 16, 2026
- X12, Transaction sets
- Center for Internet Security, CIS Control 5: Account Management
Last reviewed December 2026. Written and reviewed by Muon Solutions staff.