Overview
Design scalable ERP integrations while maintaining accounting accuracy and recoverability.
Dynamics 365 F&O · Power Automate · Excel · OData REST APIs
- Bulk journal lines
- Single- and multi-line journals
- Reversals
- Financial dimension validation
- OData batching
- Controlled concurrency
- Per-transaction errors
- Failed-record reconciliation
Standard data entities
LedgerJournalLines
Confirm entity metadata in the target environment before use.
Architecture
- Spreadsheet input
- Validate accounts, dimensions and source references
- Preview and simulate bounded batches
- Reconcile outcomes and retry eligible rows
Scenarios
- Batch validation
- Check source references, posting accounts and dimensions before accepting journal lines.
- Recoverable errors
- Keep failed rows separate and reconcile before retrying an uncertain submission.
Illustrative API reference
Confirm the entity sets, fields, keys, enums, permissions and supported operations against /data/$metadata in an authorized demo environment before using these examples.
Journal line request template for a verified unposted batch
POST https://<environment>/data/LedgerJournalLines
Content-Type: application/json
{
"dataAreaId": "DEMO",
"JournalBatchNumber": "JV-000001",
"AccountType": "Ledger",
"AccountDisplayValue": "610100",
"OffsetAccountType": "Ledger",
"OffsetAccountDisplayValue": "210100",
"DebitAmount": 25000,
"CreditAmount": 0,
"CurrencyCode": "INR",
"TransDate": "2026-07-01T00:00:00Z",
"Text": "Sample expense journal"
} Fictional dataset
Spreadsheet-style input with a duplicate, invalid amount, company, account and dimension, and one retryable failure. All amounts are in INR.
Preview the sample dataset
| Source ref | Company | Account | Offset account | Cost centre | Debit | Credit |
|---|---|---|---|---|---|---|
| SRC-001 | DEMO | 610100 | 210100 | CC-100 | ₹25,000 | ₹0 |
| SRC-002 | DEMO | 610200 | 210100 | CC-200 | ₹15,000 | ₹0 |
| SRC-001 | DEMO | 610100 | 210100 | CC-100 | ₹25,000 | ₹0 |
| SRC-003 | DEMO | 610100 | 210100 | CC-100 | -₹1,000 | ₹0 |
| SRC-004 | INVALID | 610100 | 210100 | CC-100 | ₹500 | ₹0 |
| SRC-005 | DEMO | 999999 | 210100 | CC-100 | ₹500 | ₹0 |
| SRC-006 | DEMO | 610100 | 210100 | CC-999 | ₹500 | ₹0 |
| SRC-007 | DEMO | 610100 | 210100 | CC-100 | ₹0 | ₹1,200 |
Illustrative SharePoint backend
D365 owns journal batches and posting. SharePoint stores upload requests and exceptions. Store large batch files in a governed document library or staging area.
These proposed schemas use logical internal names. Confirm names, choice and person values, and connector delegation in your tenant. Sample references are fictional identifiers.
Download SharePoint schemas and examplesJournalUploadRequests · List
| Internal column name | Field type | Index and key |
|---|---|---|
| Title | Single-line text | — |
| UploadID | Single-line text | Unique and indexed |
| LegalEntity | Single-line text | Candidate index |
| JournalName | Single-line text | — |
| InputFile | Reference / hyperlink | — |
| TotalTransactions | Number | — |
| SuccessfulTransactions | Number | — |
| FailedTransactions | Number | — |
| JournalBatchNumber | Single-line text | — |
| RequestedBy | Person | — |
| ProcessingStatus | Choice | Candidate index |
| StartedOn | Date and time (UTC) | — |
| CompletedOn | Date and time (UTC) | — |
| ResultFile | Reference / hyperlink | — |
JournalUploadErrors · List
| Internal column name | Field type | Index and key |
|---|---|---|
| Title | Single-line text | — |
| ErrorID | Single-line text | Unique and indexed |
| UploadID | Single-line text | Candidate index |
| Row | Number | — |
| Message | Multiple lines of text | — |
Read an operational list
GET https://<tenant>.sharepoint.com/sites/Demo/_api/web/lists/getbytitle('JournalUploadRequests')/items
?$select=UploadID,LegalEntity,JournalName,ProcessingStatus
&$filter=LegalEntity eq 'DEMO-A' Use indexed, delegable filters and pagination. The 5,000-item List View Threshold applies to affected queries. Use stable unique keys, concurrency controls, version history and separate execution logs.
Enforce least privilege directly on lists, libraries and integration identities. Keep sensitive values out of general history and use restricted libraries for supporting documents. Review retention, archiving and any ERP or connector licensing in the target environment.
A Power Automate flow can retrieve the relevant records, validate them, request approval when required, prepare the payload, use documented authorized integration where available, verify the ERP result, update the request and log the outcome.
Implementation pattern
Use a stable source reference for idempotency and an authorized journal header. Validate the account integration format for the legal entity before preparing lines. For higher-volume imports, assess Data management.
Try the demo
Fictional data · Runs locally in your browser
Preview the fictional inputs, then run a local simulation. The preview uses the amount and cost centre from each row. A first attempt at SRC-002 simulates a temporary failure.
Journal line preview
| Source ref | Company | Account | Offset account | Cost centre | Debit | Credit |
|---|---|---|---|---|---|---|
| SRC-001 | DEMO | 610100 | 210100 | CC-100 | ₹25,000 | ₹0 |
| SRC-002 | DEMO | 610200 | 210100 | CC-200 | ₹15,000 | ₹0 |
| SRC-001 | DEMO | 610100 | 210100 | CC-100 | ₹25,000 | ₹0 |
| SRC-003 | DEMO | 610100 | 210100 | CC-100 | -₹1,000 | ₹0 |
| SRC-004 | INVALID | 610100 | 210100 | CC-100 | ₹500 | ₹0 |
| SRC-005 | DEMO | 999999 | 210100 | CC-100 | ₹500 | ₹0 |
| SRC-006 | DEMO | 610100 | 210100 | CC-999 | ₹500 | ₹0 |
| SRC-007 | DEMO | 610100 | 210100 | CC-100 | ₹0 | ₹1,200 |
| Input row | Source ref | Batch | Outcome |
|---|
Validation
Validate fields, key values, enums and permissions in the target environment. Journal creation and journal posting are distinct operations. Reconcile each source row before retrying an uncertain outcome.
Documentation
All projects published on this website are independent educational demonstrations based on standard Microsoft Dynamics 365 Finance & Operations data entities and publicly documented APIs. All datasets, company identifiers, account codes, transaction references and financial amounts are fictional. No proprietary code, confidential business information or organizational data is reproduced. Entity availability, field definitions, permissions and supported operations may vary by application version and environment configuration.