Dynamics 365 F&O

How I Built a Prepaid Management System Using Power Automate and D365

How I combined Dynamics 365 and Power Platform to track prepaid expenses, prepare balanced journals and forecast future amortization.

Article archive date

Dynamics 365 Finance & Operations provides standard accrual schemes to recognize expenses across multiple accounting periods. My business requirement was a consolidated operational report showing original invoice values, accumulated amortization, remaining balances, duration and future expense. Preparing journals under the existing accounting controls was part of that requirement.

Having worked in finance, I understood these challenges firsthand. My objective was to build a solution that combined accounting principles with the automation capabilities of Microsoft Power Platform. The application complements standard ERP accrual and posting controls.

Designing the solution

I developed a prepaid management solution using Microsoft Power Apps, Power Automate, Office Scripts and Dynamics 365 Finance & Operations.

The solution was designed around essential accounting inputs:

  • Original invoice details
  • Prepaid expense amount
  • Amortization start and end dates
  • Legal entity
  • General ledger accounts
  • Financial dimensions
  • Previous amortization history

Power Apps provided the user interface, while Power Automate orchestrated the processing and integration with the ERP.

Applying a day-based cutoff

An illustrative design reads invoice and accounting data from Dynamics 365, presents the register in Power Apps, stores operational schedules and logs in SharePoint, and uses Power Automate to prepare journals. An authorized user then reviews and posts through the ERP. Excel or Power BI can report the reconciled balances and future expense. The SharePoint design and scenarios below are educational examples.

The following records are fictional. The cutoff is 30 April 2026, dates count inclusively, and amounts are in INR. The examples needing capitalization assume the invoice was originally posted to expense.

Scenario Original Prior amortization Capitalization Current amortization Closing
New, 1 Apr–29 Jun 90,000 0 90,000 30,000 60,000
Ongoing, 1 Mar–29 May 90,000 31,000 0 30,000 29,000
Future, 1–30 May 30,000 0 30,000 0 30,000
Final, 12 Mar–10 Apr 30,000 20,000 0 10,000 0
Accumulated, 1 Mar–29 May 90,000 0 90,000 61,000 29,000
Total 330,000 51,000 210,000 131,000 148,000

The opening balance is INR 69,000 across the two already-capitalized records. Adding INR 210,000 of capitalization and subtracting INR 131,000 of expense leaves INR 148,000, with one record fully amortized. The future forecast allocates INR 119,000 to May and INR 29,000 to June. The accumulated scenario includes INR 31,000 for March and INR 30,000 for April. Approved policy determines how and when to post the March amount.

Preparing journals and handling exceptions

Capitalization debits the prepaid asset and credits expense. Amortization debits expense and credits the prepaid asset. A previously capitalized record skips capitalization. Use cumulative day-based calculations in minor units so the final installment clears the rounding residual. Future vouchers wait for eligibility. Expired schedules with outstanding amounts, credit notes, changed terms and prior over-amortization require review.

Microsoft documents LedgerJournalLines for an authorized integration with an existing journal. Confirm metadata and permissions in the target environment. Keep journal approval and posting separate, and reconcile the result before retrying a failed or uncertain run.

The prepaid simulator lets you try the five presets, change the cutoff, inspect the journal and download the register and forecast.

Key learnings

This project reinforced that successful finance automation requires more than technical knowledge. It requires an understanding of accounting principles, exception handling, reconciliation and internal controls.

Power Platform provides the technology, but the underlying business logic determines whether the solution is reliable.

Automation should make finance processes more predictable, transparent and controllable.

Keep reading