Connectors

/

Microsoft Dynamics GP

/

Receive a Dynamics GP purchase order
Write

Receive purchase orders exactly as ordered

For warehouse and purchasing teams who want Dynamics GP receipts entered against what is still outstanding, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Receive a Dynamics GP purchase order
Receive PO 2210 in Dynamics GP: 100 SD-200 docks and 20 LP-10 printers arrived today.
PO 2210 from Fabrikam Supply is open and both items are outstanding. - SD-200: receive 100 of 150 outstanding, at 118 - LP-10: receive 20 of 20 outstanding, at 228 - Receipt: RCT-1042 in batch RCV-OCT07 Shall I create the receipt?
Microsoft Dynamics GP
Sample figures. Your results come from your own account.
microsoft-dynamics-gp-get-pm-purchase-order
microsoft-dynamics-gp-get-pm-purchase-order-line
microsoft-dynamics-gp-get-pm-receivings-trx-line
microsoft-dynamics-gp-pm-receivings-trx-add
microsoft-dynamics-gp-pm-receivings-trx-line-add

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Microsoft Dynamics GP

Microsoft Dynamics GP
Run it on your own Microsoft Dynamics GP data.

Connect Microsoft Dynamics GP, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

Over-receipts and stray items break invoice matching

Receiving a Dynamics GP purchase order means working out what is still outstanding after partial receipts, then keying each line at PO cost. Receiving too much, or an item that was never on the order, causes cost and matching problems later.

Without PopdockAI

  • Work out what earlier receipts already covered
  • Key each line and its cost by hand
  • Receive more than was ordered without noticing
  • Accept an item that was never on the PO

With PopdockAI

  • The order is checked as open and not on hold
  • Outstanding quantities are worked out from earlier receipts
  • Items not on the order and over-receipts are rejected unless you approve
  • The receipt is created at PO cost and read back

The prompt

Use this prompt

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

Prompt
**Objective:** Record a receipt against purchase order `{po-number}` for `{received-quantities}` (default everything still outstanding), after the user confirms.

Pass `{company}` as `company` on every call (if it is empty, omit `company` and the default company is used). Pass a generous `max-records` (1000). If a result comes back with exactly that many rows, say the result may be truncated.

**Step 1: The order**

Call `dynamics-gp-get-pm-purchase-order` by `po-number`. Stop if it is not found, is on `hold`, or its `po-status` is closed or cancelled. Note `vendor-id`.

**Step 2: What is outstanding**

Call `dynamics-gp-get-pm-purchase-order-line` by `po-number` and `dynamics-gp-get-pm-receivings-trx-line` by `po-number`. Outstanding per item = `quantity-ordered` minus the sum of `quantity-shipped` already received. If an item appears on more than one PO line, stop and ask the user which line they are receiving.

**Step 3: Match what arrived**

Parse `{received-quantities}` into item and quantity pairs. Reject any item not on the PO, and any quantity above what is outstanding, unless the user confirms an over-receipt explicitly.

**Step 4: Confirm**

Ask the user for the receipt number, the batch number, the vendor's packing slip or document number, and whether this is a shipment only or a shipment with invoice. Show the user exactly what will be written, field by field, and ask for explicit confirmation. Do nothing further without a clear yes. Show each line with item, quantity, unit of measure, PO unit cost and location.

**Step 5: Write**

1. Call `dynamics-gp-pm-receivings-trx-add` once with `pop-receipt-number`, `pop-type`, `vendor-id`, `batch-number`, `receipt-date` (today unless given), `vendor-document-number` and `auto-fill-cost-based-on-po` true.
2. Only if that succeeded, call `dynamics-gp-pm-receivings-trx-line-add` once per line with `pop-receipt-number`, `pop-type`, `vendor-id`, `po-number`, `item-number`, `quantity-shipped`, `unit-cost` (the PO unit cost), `location-code` and `auto-fill-cost-based-on-po` true.

If a line fails, stop and report which lines exist. Do not retry a failed write automatically. Report the error exactly as returned.

**Step 6: Verify**

Call `dynamics-gp-get-pm-receivings-trx-line` by `pop-receipt-number` and report what was stored.

**Rules & Guidelines:**

* The only write tools this prompt may call are `dynamics-gp-pm-receivings-trx-add` (once) and `dynamics-gp-pm-receivings-trx-line-add` (once per confirmed line), after Step 4.
* Do not change the purchase order itself.

**Validation:**

* If nothing is outstanding on the PO, say so and stop.

Who it's for

One answer, three teams that use it

Receiving clerks

Receive a delivery in one message

Tell it what came off the truck and the receipt is built at PO cost, without keying each line.

Receive PO 3301 in Dynamics GP: 50 CART-12 cartridges arrived this morning.

Warehouse managers

Receive everything outstanding at once

When a full delivery arrives, receive every outstanding line in one go after a quick review.

Everything outstanding on PO 2290 from Fabrikam arrived today. Receive it in Dynamics GP.

Accounts payable

Keep invoice matching clean

Over-receipts and stray items are stopped at receiving, so the vendor invoice matches without exceptions.

Receive 120 SD-200 docks on PO 2210 in Dynamics GP, and tell me if that is more than we ordered.

How it works

What PopdockAI does when you ask

You give the PO number and what arrived, and your AI assistant checks it against what is outstanding in Dynamics GP. The receipt is created only after you confirm, and the purchase order itself is not changed.

01

Ask

You give the PO number and what arrived, or receive everything outstanding.

Your AI tool

02

Check

It confirms the order is open and works out what is outstanding per item.

microsoft-dynamics-gp-get-pm-purchase-order
microsoft-dynamics-gp-get-pm-purchase-order-line
microsoft-dynamics-gp-get-pm-receivings-trx-line

03

Match

It rejects items not on the order and quantities above what is outstanding.

No items found.

04

Confirm

You approve the receipt, and it is created at PO cost and read back.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for Microsoft Dynamics GP and one secure connection to your AI tool. No code, no exports.

get-data

microsoft-dynamics-gp-get-pm-purchase-order

Returns purchase order headers from Dynamics GP Purchasing, including vendor, dates, status, buyer and order amounts. Filter by hold, vendor ID, remaining subtotal, document date, vendor name, PO status, PO number and buyer ID, and pick the company and the maximum number of records.
get-data

microsoft-dynamics-gp-get-pm-purchase-order-line

Returns purchase order lines from Dynamics GP Purchasing, including the vendor, item, site, quantities, costs, line status and required dates. Filter by item description, document date, vendor name, PO line status, extended cost, PO number, item number and vendor ID, and pick the company and the maximum number of records.
get-data

microsoft-dynamics-gp-get-pm-receivings-trx-line

Returns receipt lines from Dynamics GP Purchasing, with the vendor, purchase order, item, quantities shipped and invoiced, and costs. Filter by vendor ID, extended cost, item description, receipt date, POP receipt number, vendor name, item number and POP type, and pick the company and the maximum number of records.
run-action

microsoft-dynamics-gp-pm-receivings-trx-add

Adds a receivings transaction in Dynamics GP through eConnect; GP defaults any field not listed. Requires vendor ID, batch number, receipt date, POP receipt number and POP type. Optional: vendor document number, actual ship date, freight amount, payment terms ID, tax amount and subtotal. Writes to the live Dynamics GP company database.
run-action

microsoft-dynamics-gp-pm-receivings-trx-line-add

Adds a receivings transaction line in Dynamics GP through eConnect; GP defaults any field not listed. Requires quantity shipped, vendor ID, POP receipt number, POP type and unit cost. Optional: PO number, vendor item number, receipt date, location code, PO line number and item number. Writes to the live Dynamics GP company database.
Read only.Nothing in Microsoft Dynamics GP Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

Receipts that match the order exactly

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