Connectors

/

Microsoft Dynamics 365 Business Central

/

Enter a Dynamics 365 Business Central vendor invoice
Write

Enter vendor bills once, matched to purchase orders

For finance teams who want vendor invoices entered without duplicates and matched to orders, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Enter a Dynamics 365 Business Central vendor invoice
Enter Fabrikam invoice F-1042 in Business Central for 50 Trail Jackets at 64 and freight of 120.
No invoice F-1042 from Fabrikam exists, posted or draft. - Trail Jacket: 50 at 64.00, matched to PO-1042 - Freight: 120.00 to account 5400 Freight In - Total: 3,320.00 Shall I create the draft purchase invoice?
Microsoft Dynamics 365 Business Central
Sample figures. Your results come from your own account.
No items found.

On this page

The problem

The problem

The prompt

Who it's for

How it works

Connector

Microsoft Dynamics 365 Business Central

Microsoft Dynamics 365 Business Central
Run it on your own Microsoft Dynamics 365 Business Central data.

Connect Microsoft Dynamics 365 Business Central, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

A repeated vendor invoice is caught only at posting

Entering a vendor bill means checking it was not already entered, matching it to the purchase order and finding the right items or expense accounts. A repeated invoice number is rejected only at posting, after the work is done.

Without PopdockAI

  • Search posted and draft invoices for the number
  • Find the purchase order and copy its lines
  • Pick expense accounts that allow posting
  • Learn about the duplicate when posting fails

With PopdockAI

  • Posted and draft invoices are checked for the same number first
  • Lines are matched to open purchase orders at order cost
  • Price differences and invalid accounts are flagged
  • You preview it, then a draft is created and checked against the bill

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Enter vendor invoice `{vendor-invoice-number}` from `{vendor-name}` for `{lines}` as a draft purchase invoice.

Pass `{company}` as the company argument on every call. If `{company}` is empty, leave the company argument out so the connector's default company is used.

**Step 1: Resolve the vendor**

Call `business-central-get-vendor` with name.contains set to `{vendor-name}`. If several match, list them and stop. If blocked is All, stop.

**Step 2: Duplicate check**

Call `business-central-get-posted-purchase-invoice` with buy-from-vendor-number and vendor-invoice-number set to `{vendor-invoice-number}`. Call `business-central-get-purchase-transaction` with buy-from-vendor-number and document-type Invoice and look for the same vendor-invoice-number. Any match: stop and show it. Business Central rejects a repeated vendor invoice number when posting.

**Step 3: Match to an order**

Call `business-central-get-purchase-transaction-line` with buy-from-vendor-number and document-type Order. If the lines in `{lines}` match open order lines, show the match and use the order's direct-unit-cost, noting any price difference.

**Step 4: Resolve each line**

Items: `business-central-get-item` (line-type Item). Expenses: `business-central-get-account` (line-type Account); the account must be account-type Posting, not blocked and allow direct posting. Stop and ask on no match or several.

**Step 5: Preview and confirm**

Show vendor, vendor invoice number, invoice date, due date if given, lines, total, and any order match or price difference. Ask for confirmation.

**Step 6: Create**

After confirmation call `business-central-create-purchase-invoice` once with vendor-number and pay-to-vendor-number, vendor-invoice-number `{vendor-invoice-number}`, invoice-date and due-date where given. Then call `business-central-create-purchase-invoice-line` for each line with document-number, line-type, number-on-line, quantity, unit-cost and description.

**Step 7: Confirm the result**

Call `business-central-get-purchase-transaction` and `business-central-get-purchase-transaction-line` with the new document-number, and report the number and total. If the total differs from the vendor's bill, say so; the user can fix it with `business-central-update-purchase-invoice-line` or `business-central-update-purchase-invoice` after another confirmation.

**Rules & Guidelines:**

* Do not call any create or update tool until the user has confirmed the exact values shown in the preview.
* Call `business-central-create-purchase-invoice` exactly once.

**Validation:**

* Without a vendor invoice number there is no duplicate check; ask for it.

Who it's for

One answer, three teams that use it

Accounts payable clerks

Key bills faster with fewer errors

Enter a bill in one message and have it matched to the purchase order, with any total difference noted.

Enter Contoso Supplies invoice CS-5531 in Business Central for 40 Camp Stoves at 38 and shipping of 75.

AP managers

Stop duplicate invoices up front

A repeated invoice number stops the entry before any work is done, protecting against paying twice.

Has Northwind Traders invoice NT-8802 already been entered in Business Central? If not, enter it for 1,250 to account 6300.

Purchasing

See price differences against the order

Lines use the order cost and differences are noted, so you can query the vendor before paying.

Enter Fabrikam invoice F-2087 for 100 Wool Socks at 5.20 and tell me if it differs from the purchase order.

How it works

What PopdockAI does when you ask

You give the vendor invoice number, vendor and lines and your AI assistant checks for duplicates and matches open orders in Business Central. Nothing is created until you confirm.

01

Ask

You give the vendor invoice number, vendor and lines.

Your AI tool

02

Check

It checks posted and draft invoices for the same number and stops on a match.

No items found.

03

Match

Lines are matched to open purchase orders and you preview the invoice.

No items found.

04

Create

After you confirm, it creates the draft and notes any total difference.

Your AI tool

The outcome

Vendor bills entered once, matched to orders

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation