Automation · D365 F&O

Prepaid Expense Amortization Engine

Calculate five day-based prepaid scenarios, reconcile the consolidated register, and preview balanced journals and future expense.

Overview

Dynamics 365 Finance & Operations provides standard accrual schemes for recognizing expenses across periods. The business requirement behind my Prepaid Management System was a consolidated view of original invoices, past amortization, remaining balances, duration and future expense, together with controlled journal preparation. The application complements standard ERP accounting controls. The register and scenarios below are illustrative.

Dynamics 365 F&O · Power Apps · SharePoint · Power Automate · Excel or Power BI

  • Day-based amortization
  • Consolidated register
  • Balanced journal preview
  • Monthly forecast
  • Cutoff and retry controls

Standard data entities

  • LedgerJournalLines

Microsoft documents LedgerJournalLines for submitting lines to an existing authorized unposted journal. Resolve the required fields and supported operations through metadata. Journal approval and posting retain their own ERP controls.

Architecture

  1. D365 invoice and accounting data
  2. Power Apps register and SharePoint operational lists
  3. Power Automate prepares the journal for authorized ERP review and posting
  4. Reconcile the register and expense forecast in Excel or Power BI

Scenarios

New
Capitalize INR 90,000 and amortize INR 30,000 through April 30. Closing balance INR 60,000.
Ongoing
Previously capitalized. Recognize INR 30,000 for April and carry INR 29,000.
Future coverage
Capitalize INR 30,000 in April. Recognize expense when coverage starts in May.
Final installment
Recognize the INR 10,000 residual. Flag expired coverage for review and carry zero.
Accumulated
Capitalize INR 90,000 and recognize INR 61,000 subject to policy. That covers INR 31,000 for March and INR 30,000 for April.

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.

Inspect authorized OData metadata

GET https://<environment>/data/$metadata

Identify the journal line collection

GET https://<environment>/data/LedgerJournalLines?$top=1

Fictional dataset

Five fictional prepaid records as of 30 April 2026. The original amount totals INR 330,000. Opening INR 69,000 plus capitalization INR 210,000 less amortization INR 131,000 leaves INR 148,000. May and June expense forecast to INR 119,000 and INR 29,000 respectively.

Preview the sample dataset
Downloadable fictional records
Prepaid IDScenarioCompanyVendorInvoiceVoucherVoucher dateCoverage startCoverage endCutoffExpense GLPrepaid GLDimensionsCurrencyOriginal amountPrior expenseTotal daysDays consumedDays remainingDaily rateOpeningCapitalizationCurrent expenseAccumulated expenseClosingPreviously capitalizedAccumulated scenarioStatusJournal referenceRun IDStarted UTCCompleted UTC
PP-001 New DEMO-A V-DEMO-01 INV-001 PV-001 2026-04-01 2026-04-01 2026-06-29 2026-04-30 610200 130100 CC-DEMO INR ₹90,000 ₹0 90 30 60 ₹1,000 ₹0 ₹90,000 ₹30,000 ₹30,000 ₹60,000 No No Active SIM-JRN-001 SIM-RUN-APR26 2026-05-01T00:00:00Z 2026-05-01T00:01:00Z
PP-002 Ongoing DEMO-A V-DEMO-02 INV-002 PV-002 2026-03-01 2026-03-01 2026-05-29 2026-04-30 610200 130100 CC-DEMO INR ₹90,000 ₹31,000 90 61 29 ₹1,000 ₹59,000 ₹0 ₹30,000 ₹61,000 ₹29,000 Yes No Active SIM-JRN-002 SIM-RUN-APR26 2026-05-01T00:00:00Z 2026-05-01T00:01:00Z
PP-003 Future DEMO-B V-DEMO-03 INV-003 PV-003 2026-04-15 2026-05-01 2026-05-30 2026-04-30 610200 130100 CC-DEMO INR ₹30,000 ₹0 30 0 30 ₹1,000 ₹0 ₹30,000 ₹0 ₹0 ₹30,000 No No Future coverage SIM-JRN-003 SIM-RUN-APR26 2026-05-01T00:00:00Z 2026-05-01T00:01:00Z
PP-004 Final DEMO-B V-DEMO-04 INV-004 PV-004 2026-03-12 2026-03-12 2026-04-10 2026-04-30 610200 130100 CC-DEMO INR ₹30,000 ₹20,000 30 30 0 ₹1,000 ₹10,000 ₹0 ₹10,000 ₹30,000 ₹0 Yes No Fully amortized SIM-JRN-004 SIM-RUN-APR26 2026-05-01T00:00:00Z 2026-05-01T00:01:00Z
PP-005 Accumulated DEMO-C V-DEMO-05 INV-005 PV-005 2026-04-10 2026-03-01 2026-05-29 2026-04-30 610200 130100 CC-DEMO INR ₹90,000 ₹0 90 61 29 ₹1,000 ₹0 ₹90,000 ₹61,000 ₹61,000 ₹29,000 No Yes Review SIM-JRN-005 SIM-RUN-APR26 2026-05-01T00:00:00Z 2026-05-01T00:01:00Z

Illustrative SharePoint backend

D365 owns posted invoice and journal balances. SharePoint maintains an operational schedule, cutoff runs and journal preparation history. Reconcile it to the ERP.

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 examples
PrepaidRegister · List
PrepaidRegister schema
Internal column nameField typeIndex and key
Title Single-line text —
PrepaidID Single-line text Unique and indexed
LegalEntity Single-line text Candidate index
VendorAccount Single-line text —
InvoiceNumber Single-line text —
VoucherNumber Single-line text Candidate index
VoucherDate Date only —
StartDate Date only —
EndDate Date only —
OriginalAmount Currency —
CurrencyCode Single-line text —
ExpenseGL Single-line text —
PrepaidGL Single-line text —
FinancialDimensions Single-line text —
TotalDays Number —
ConsumedDays Number —
DailyAmortization Number —
PreviouslyAmortized Currency —
OpeningBalance Currency —
CurrentExpense Currency —
ClosingBalance Currency —
IsCapitalized Yes/no —
IsAccumulated Yes/no —
RecentCutoffDate Date only —
Status Choice Candidate index
JournalReference Single-line text —
PrepaidProcessingRuns · List
PrepaidProcessingRuns schema
Internal column nameField typeIndex and key
Title Single-line text —
RunID Single-line text Unique and indexed
Cutoff Date only Candidate index
Status Choice —
Started Date and time (UTC) —
Completed Date and time (UTC) —
PrepaidJournalHistory · List
PrepaidJournalHistory schema
Internal column nameField typeIndex and key
Title Single-line text —
EntryKey Single-line text Unique and indexed
RunID Single-line text Candidate index
PrepaidID Single-line text Candidate index
JournalReference Single-line text —
Amount Currency —
EntryType Choice —
Result Choice —
Error Multiple lines of text —

Read an operational list

GET https://<tenant>.sharepoint.com/sites/Demo/_api/web/lists/getbytitle('PrepaidRegister')/items
?$select=PrepaidID,LegalEntity,StartDate,EndDate,ClosingBalance
&$filter=LegalEntity eq 'DEMO-A' and ClosingBalance gt 0

Illustrative Power Fx

Filter(PrepaidRegister, LegalEntity = varSelectedEntity &&
  ClosingBalance > 0 && Status.Value = "Active")

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

Assume an invoice was charged to expense unless marked previously capitalized. Capitalization debits prepaid assets and credits expense. Amortization debits expense and credits prepaid assets. Use inclusive calendar days and cumulative rounding in minor units. Prior-period catch-up, credit notes and closed-period posting decisions require approved accounting policy.

Try the demo

Fictional data · Runs locally in your browser

Choose a preset or edit the schedule. Posting remains a local simulation with an explicit review step.

Validation

Check leap year and same-day coverage, cross-year schedules, future vouchers and coverage, full amortization, negative and zero amounts, excess prior amortization, changed terms, rounding, closed periods, failures and duplicate runs.

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.