Journal entries in Business Central, automated
The BC Journal Entry Bot reads DocuSign journal-entry PDFs and CashNet Excel files, turns them into debit and credit lines, checks that they balance, and enters them into Microsoft Dynamics 365 Business Central without an API. I built it and maintain it in daily use at the Business Office of Associated Students, Inc., CSULB.
The problem
A multi-line journal entry meant moving through Business Central field by field for every line: account, department, description, debit, credit, comment and object code. A long one took 10–15 minutes and 100–300+ keystrokes.
How it works
Read. It parses page 1 of the DocuSign PDF with pdfplumber and PyMuPDF: simple 2-line transfers, multi-line entries, the posting month and the JE number, and object codes such as A5106-0, G70-8423-0 and 6440-7103-G60-5484-0.
Fill the gaps. When page 1 isn't enough, it attaches the CashNet detail file (openpyxl): a positive amount is a debit, a negative or bracketed one a credit.
Review. An editable table lets you fix, add, delete or swap lines, with a live BALANCED or Δ indicator and debit and credit totals.
Post. Alt+F8 types every line into Business Central, with a configurable tab offset to match the screen layout.
Controls
- A live balance check shows whether debits equal credits before anything posts.
- Object codes are normalized on load (
-00becomes-0), so one code never appears in two forms. - Every parsed entry exports to CSV for audit or review, and parse or entry errors go to a log.
Stack
Python · customtkinter · pdfplumber · PyMuPDF · pypdf · openpyxl · pyautogui · keyboard · pyperclip · Pillow. Target system: Microsoft Dynamics 365 Business Central.