Connectors

/

Microsoft Dynamics GP

/

Review Dynamics GP inventory to reorder
Report

See what will run short before customers notice

For buyers who want Dynamics GP items with low cover found and order quantities suggested, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Review Dynamics GP inventory to reorder
Which items in the SCANNERS class need reordering in Dynamics GP based on the last 90 days?
9 of 34 SCANNERS items have less than twice their lead time in cover. - Most urgent: SD-200, 6 days of cover against a 9-day lead time - Suggested: 150 units from Fabrikam Supply, about 17,700 - Total suggested: 41,300 across 3 vendors - No vendor: 1 back-ordered item has no known supplier Want the suggestion list by vendor?
Microsoft Dynamics GP
Sample figures. Your results come from your own account.
microsoft-dynamics-gp-get-iv-item-quantity
microsoft-dynamics-gp-get-rm-sales-line-item
microsoft-dynamics-gp-get-iv-vendor-item
microsoft-dynamics-gp-get-pm-purchase-order-line

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

Stock-outs found when an order cannot ship

Spotting items about to run out in Dynamics GP means weighing on hand, allocated, on order and back ordered stock against demand and lead time. Without that maths, buyers over-order or find out when a customer order cannot ship.

Without PopdockAI

  • Export stock positions for every item
  • Work out daily demand from recent sales
  • Compare cover with each vendor's lead time
  • Check open purchase orders before ordering more

With PopdockAI

  • The company-wide stock position is read
  • Recent sales become daily demand
  • Low cover items get vendor terms and open orders
  • Quantities are suggested by vendor, and nothing is ordered

The prompt

Use this prompt

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

Prompt
**Objective:** Find the items in class `{item-class-code}` (or the single item `{item-number}`; default all items) that will run short, using demand over the last `{lookback-days}` days (default 90), and propose a reorder by vendor.

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: Stock position**

Call `dynamics-gp-get-iv-item-quantity` filtered by `item-class-code` or `item-number` when given. Use the item-level rows (by `record-type`) for the company-wide position; do not add site rows on top of them. For each item:

* available = `quantity-on-hand` minus `quantity-allocated`
* projected = available plus `quantity-on-order` minus `quantity-back-ordered`

**Step 2: Demand**

Call `dynamics-gp-get-rm-sales-line-item` with `document-date.from` at the lookback (and the item filter when given). Sum `quantity` per `item-number` on invoices and orders, ignoring returns and quotes (by `sop-type`), and turn it into average daily demand.

**Step 3: Supply terms**

For items where projected stock covers fewer days than twice the vendor lead time (or fewer than 30 days when no lead time is known), call `dynamics-gp-get-iv-vendor-item` filtered by `item-number`. Take `vendor-id`, `average-lead-time`, `economic-order-quantity`, `minimum-order-quantity` and `last-receipt-cost`. Then call `dynamics-gp-get-pm-purchase-order-line` filtered by `item-number` to show lines still open and when they are required.

**Step 4: Recommend**

Suggested quantity = demand over (lead time plus 30 days) minus projected stock, raised to the minimum order quantity and rounded up to the economic order quantity when those are set. Skip items where the result is zero or less.

**Step 5: Report**

Grouped by vendor: item number, description, available, on order, back ordered, days of cover, lead time, suggested quantity, estimated cost (suggested quantity times last receipt cost). Then list items with back orders but no vendor item record, since they cannot be reordered from a known source.

**Rules & Guidelines:**

* Read-only. Do not call `dynamics-gp-pm-purchase-order-add`, `dynamics-gp-iv-inventory-transfer-add`, `dynamics-gp-iv-vendor-item-add` or any tool whose name does not contain `get`.
* This is a suggestion list for a buyer, not an order. Say so at the top.
* Items with no sales in the lookback and no back orders are not at risk; leave them out.

**Validation:**

* If no items match the filter, say so and stop.
* If sales history is empty for the whole class, report stock and back orders only and say demand could not be measured.

Who it's for

One answer, three teams that use it

Buyers

Get a reorder list by vendor

Suggested quantities rounded to order minimums, with estimated cost, are ready to turn into purchase orders.

Which items in the CABLES class need reordering in Dynamics GP based on the last 60 days?

Inventory planners

See cover against lead time

Items with less than twice their lead time in cover are flagged, so you order before it is too late.

Is item SD-200 going to run short before the next delivery? Check Dynamics GP.

Operations managers

Find back orders with no supplier

Back ordered items with no known vendor are listed separately, so someone can source them.

Which back ordered items in Dynamics GP have no vendor set up?

How it works

What PopdockAI does when you ask

You name an item class or item and a demand window, and your AI assistant works out what will run short in Dynamics GP. You get a suggestion list, and nothing is ordered.

01

Ask

You name an item class or item, and a demand window.

Your AI tool

02

Read

It reads the stock position and turns recent sales into daily demand.

microsoft-dynamics-gp-get-iv-item-quantity
microsoft-dynamics-gp-get-rm-sales-line-item

03

Supply

For items with low cover, it reads vendor terms and open purchase orders.

microsoft-dynamics-gp-get-iv-vendor-item
microsoft-dynamics-gp-get-pm-purchase-order-line

04

Report

You get suggested quantities and costs, with nothing ordered.

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-iv-item-quantity

Returns item quantity records by site from Dynamics GP Inventory, including quantities on hand, allocated, on order and back ordered. Filter by quantity on hand, item description, location code from item master, item class code, item type, record type and item number, and pick the company and the maximum number of records.
get-data

microsoft-dynamics-gp-get-rm-sales-line-item

Returns sales document lines from Dynamics GP Sales Order Processing, with the customer, item, quantity, prices and costs of each line. Filter by location code, SOP type, item number, SOP number, customer name, customer ID, item description and extended price, and pick the company and the maximum number of records.
get-data

microsoft-dynamics-gp-get-iv-vendor-item

Returns vendor item records from Dynamics GP Inventory, linking items to the vendors who supply them with order quantities, lead times and last receipt details. Filter by vendor ID, last receipt date, vendor item description, quantity on order, vendor item number and item number, 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.
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

Know what to order before stock runs out

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