ERP Integration Methods
Connect your Enterprise Resource Planning (ERP) system to MachineMetrics to synchronize work orders, operations, and production data between your business systems and the shop floor.
| Section | Description |
|---|---|
| Overview | How MachineMetrics ERP integration works |
| Method 1: Auto Importer | Scheduled CSV-based imports |
| Method 2: REST API | Real-time bidirectional sync via API |
| Method 3: Pre-Built ERP Connectors | Turnkey integrations for popular ERP systems |
| Method 4: Custom Connector Development | Build and deploy your own connector with the SDK and mmdev |
| ERP Data Studio | View, validate, and troubleshoot ERP data |
| Data Flow Best Practices | Inbound and outbound data recommendations |
Overview
MachineMetrics integrates with ERP systems to enable:
- Work Order Synchronization: Import jobs, operations, and routings from your ERP
- Production Data Export: Send completed parts, cycle times, and labor data back to your ERP
- Real-Time Visibility: Track job progress against ERP-planned quantities
- Automated Updates: Eliminate manual data entry with automatic syncing
Supported Integration Methods
| Method | Best For | Complexity |
|---|---|---|
| Auto Importer | Scheduled CSV-based imports | Low |
| REST API | Real-time bidirectional sync | Medium |
| ERP Connectors | Pre-built integrations (contact Sales) | Low |
| Custom Connector | SDK + mmdev scaffold and deploy | High |
Getting Started
These prerequisites apply to the CSV and API methods below. For pre-built connectors, use Setup and Verification.
Prerequisites
Before setting up an ERP integration:
- MachineMetrics Account: Manager or Executive level permissions required
- API Key: Generated from Settings → API Keys with appropriate scopes
- ERP Export Capability: Your ERP must be able to export data as CSV or connect via API
- Network Access: The system running the integration must reach
api.machinemetrics.com(orapi.machinemetrics-us-gov.comfor GovCloud)
API Endpoints
| Environment | API URL |
|---|---|
| Standard | https://api.machinemetrics.com |
| GovCloud | https://api.machinemetrics-us-gov.com |
Method 1: Auto Importer (CSV-Based)
The Auto Importer is the simplest way to sync operations data from your ERP. It monitors a folder for CSV files and automatically uploads them to MachineMetrics.
How It Works
┌─────────────┐ ┌──────────────────┐ ┌────────────────────┐
│ Your ERP │────▶│ Monitored │────▶│ MachineMetrics │
│ System │ │ Folder (CSV) │ │ Cloud │
└─────────────┘ └──────────────────┘ └────────────────────┘
▲
│
Auto Importer
(watches folder)
Setup Instructions
Step 1: Prepare Your Folder Structure
- Create a new folder for your operations data (e.g.,
C:\MachineMetrics\Imports) - Inside that folder, create a subfolder named
operations
Step 2: Generate an API Key
- Navigate to Settings → API Keys in MachineMetrics
- Click Create API Key
- Select the following scopes:
- ERP (required)
- Reporting (required)
- Click Save Changes
- Copy and securely store your API key: it will only be shown once
Step 3: Install the Auto Importer
- Download the Auto Importer executable
- Run
mm-auto-importer.exe - Enter the path to your monitored folder (e.g.,
C:\MachineMetrics\Imports) - Paste your API key when prompted
- Choose an installation directory
- Recommended: Check "Launch on startup" to ensure continuous operation
- Click Install, then Finish
Step 4: Configure Your ERP Export
Set up your ERP to export operations data as CSV files to your monitored folder. Files must follow the MachineMetrics Operations CSV format.
Required CSV columns:
PartNumberOperationNumberWorkcenterName(must match machine name in MachineMetrics)ExpectedPartsExpectedCycleTime(seconds)
Optional columns:
WorkOrderNumberDueDateSetupTimeDescription
Step 5: Verify Operation
- A command prompt window should display "watching path" followed by your folder
- Place a test CSV in your monitored folder
- The file will be renamed with
.donesuffix once successfully uploaded - Check MachineMetrics to confirm the operations appear
Important: Do not close the command prompt window; the Auto Importer stops if the window is closed. Use Windows Task Scheduler for persistent operation (see below).
Running as a Scheduled Task (Recommended)
For servers or workstations that restart:
- Open Task Scheduler from the Start Menu
- Click Create Basic Task
- Name it "MachineMetrics Importer"
- Select trigger: When the computer starts
- Select action: Start a program
- Configure:
- Program/script: Path to
file-uploader.exe - Arguments:
-p C:\Your\Folder\Path -t Your-Api-Key
- Program/script: Path to
- Click Finish
Troubleshooting Auto Importer
| Issue | Solution |
|---|---|
| Authentication errors | Verify API key has ERP and Reporting scopes |
| No data appearing | Check CSV format matches MachineMetrics requirements |
| Files not processed | Confirm folder path is correct in importer config |
| Importer stops running | Set up as Windows Scheduled Task |
Method 2: REST API Integration
For real-time, bidirectional integration, use the MachineMetrics REST API.
API Authentication
All API requests require a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Common API Endpoints
| Endpoint | Method | Purpose |
|---|---|---|
/reports/production | POST | Retrieve production metrics |
/operations | GET/POST | Manage operations |
/jobs | GET/POST | Manage work orders |
/machines | GET | List machines |
Example: Retrieve Production Data
curl -X POST "https://api.machinemetrics.com/reports/production" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"start": "2024-01-01T00:00:00Z",
"end": "2024-01-31T23:59:59Z",
"data": [
{"metric": "totalParts"},
{"metric": "goodParts"},
{"metric": "rejectedParts"},
{"metric": "timeInCycle"}
],
"groupBy": [
{"group": "machine"},
{"group": "day"}
],
"flatten": true
}'
API Key Scopes
When creating an API key, select scopes based on your integration needs:
| Scope | Permissions |
|---|---|
erp | Read and write access for ERP integration |
reporting | Read access to reportable data |
manager | Full control of manager-level functionality |
manager.read | Read-only access to system settings, jobs, users |
operator.jobs | Job control and access to job lists |
Developer Resources
For complete API documentation, visit: developers.machinemetrics.com
Method 3: Pre-Built ERP Connectors
MachineMetrics offers pre-built connectors for popular ERP systems. These connectors provide turnkey integration with minimal configuration.
Available Connectors
Use the ERP Connectors overview for supported systems and setup guides, including Dynamics 365 Finance & Operations, Business Central, NetSuite, Infor LN, Epicor Kinetic, and other ERPs. Confirm requirements with your SDM.
Requesting a Connector
Contact your SDM to confirm the connector, ERP version, and deployment requirements. Follow Setup and Verification and the ERP-specific guide. Enter credentials directly in Edge Services; do not share them with MachineMetrics staff.
Method 4: Custom Connector Development
When no pre-built connector matches your ERP or integration requirements, you can build and deploy your own connector using the @machinemetrics/mm-erp-sdk and the MachineMetrics mmdev CLI.
This path is for developers and implementation teams who will:
- Scaffold a project from the
generic-erp-connectortemplate (mmdev create). - Implement using
CONNECTOR-GUIDE.mdand SDK reference docs shipped with your project. - Deploy on infrastructure you control; run the connector on a laptop, VM, or server you operate.
→ Creating Your Own Connector: full guide on the developer site
→ ERP Connector Data Mapping Specification: field-level reference for every entity your connector must supply
Developer tools: mmdev CLI · ERP Connectors overview
ERP Data Studio
Use ERP Data Studio to inspect imported records and map ERP employees to MachineMetrics operators. In versions with the current role rules, Admin, Manager, Executive, and IT Admin users can add and edit general records. Other users have read-only access. Labor tickets have an additional permission check. See ERP Data Studio permissions for deletion permissions, labor-ticket rules, and deployed-version checks. Machine-to-resource mappings are configured in MES Settings.
Data Flow Best Practices
For pre-built connectors, follow Concepts and Data Flow and your connector guide. The recommendations below describe file and API integration patterns.
Inbound (ERP → MachineMetrics)
- Sync Frequency: Daily or per-shift for batch operations; real-time for active job tracking
- Data Validation: Ensure workcenter names in your ERP match machine names in MachineMetrics exactly
- Unique Identifiers: Use consistent part numbers and operation numbers across systems
Outbound (MachineMetrics → ERP)
- Production Counts: Use the API to pull good parts, rejected parts, and cycle times
- Labor Data: Retrieve operator run data for labor ticket updates
- Downtime: Export categorized downtime for root cause analysis in your ERP
Related Articles
- API Integration Guide: Detailed API usage with code examples
- Third-Party App Integrations: Connect to MaintainX, Make.com, and more
- Webhooks & Automation: Trigger external actions from MachineMetrics events
- Production Analytics Guide: Understanding operations and production runs
- Machine Settings Guide: Configure machine groups for ERP mapping
Getting Help
- ERP Data Studio Access: Contact your Solution Delivery Manager (SDM)
- Connector Setup: Email MachineMetrics Support
- API Documentation: developers.machinemetrics.com
- Max AI: Ask "How do I map my ERP work centers to MachineMetrics?"