Connectors

/

Microsoft Dynamics GP

/

Create a Dynamics GP sales order
Write

Enter sales orders right the first time

For sales and order entry teams who want Dynamics GP orders checked for holds, stock, price and credit before entry, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Create a Dynamics GP sales order
Create a Dynamics GP sales order for Northwind Traders: 10 SD-200 docks and 4 LP-10 printers, PO 7781.
Northwind Traders is active with no hold, and both items are in stock. - SD-200: 10 at 160, 46 available at MAIN - LP-10: 4 at 245, 12 available at MAIN - Total: 2,580, within the credit limit - PO 7781 is not on any other order Shall I create the order?
Microsoft Dynamics GP
Sample figures. Your results come from your own account.
microsoft-dynamics-gp-get-rm-customer
microsoft-dynamics-gp-get-iv-item
microsoft-dynamics-gp-get-iv-item-quantity
microsoft-dynamics-gp-get-iv-item-price
microsoft-dynamics-gp-get-rm-sales-trx
microsoft-dynamics-gp-rm-sales-trx-add
microsoft-dynamics-gp-rm-sales-line-item-add
microsoft-dynamics-gp-get-rm-sales-line-item

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

Orders entered, then stuck on holds, stock or price

Keying a sales order into Dynamics GP while checking holds, stock, price and the credit limit means jumping between screens. Miss one check and the order is entered, then stuck or shipped at the wrong price.

Without PopdockAI

  • Check the customer for a hold or inactive flag
  • Look up stock by site for every item
  • Find the right price for this customer
  • Work out whether the order breaks the credit limit

With PopdockAI

  • Holds and inactive flags are checked first
  • Stock by site and the customer's price are confirmed for each item
  • Credit limit and duplicate PO warnings appear before you commit
  • You confirm the full order, and the stored lines are 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:** Create a sales order for `{customer-name}` with lines `{order-lines}` (customer PO `{customer-po-number}`, if given), after checking credit, stock and price, and getting the user's confirmation.

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: Customer**

Call `dynamics-gp-get-rm-customer` with `customer-name.contains` (or `customer-id`). If several match, list them and stop. If `hold` is set or the customer is `inactive`, stop and say so.

**Step 2: Lines**

Parse `{order-lines}` into item and quantity pairs. For each item:

* `dynamics-gp-get-iv-item` by `item-number`: stop on an unknown item.
* `dynamics-gp-get-iv-item-quantity` by `item-number`: available = on hand minus allocated, by site; note shortfalls.
* `dynamics-gp-get-iv-item-price` by `item-number`: the price for the customer's price level if known, otherwise the list price.

**Step 3: Credit**

Order total = sum of quantity times price. If `credit-limit-amount` is above 0 and `customer-balance` plus the order total exceeds it, warn the user with both figures.

**Step 4: Confirm**

If the customer PO number is given, call `dynamics-gp-get-rm-sales-trx` by `customer-po-number` and warn if it is already on an order. Ask the user for the order number, the order document id (the SOP type id setup, such as STDORD), the batch number and the ship-from site. Show the user exactly what will be written, field by field, and ask for explicit confirmation. Do nothing further without a clear yes. Show customer, PO number, order number, each line (item, quantity, unit price, extended, available at the site), total and any warnings.

**Step 5: Write**

1. Call `dynamics-gp-rm-sales-trx-add` once with `sop-type` (order), `sop-number`, `document-id`, `customer-id`, `document-date` today, `batch-number`, `customer-po-number` and `location-code`.
2. Only if that succeeded, call `dynamics-gp-rm-sales-line-item-add` once per line with `sop-type`, `sop-number`, `customer-number`, `item-number`, `quantity`, `unit-price` and `site-id`.

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-rm-sales-line-item` by `sop-number` and report the stored lines.

**Rules & Guidelines:**

* The only write tools this prompt may call are `dynamics-gp-rm-sales-trx-add` (once) and `dynamics-gp-rm-sales-line-item-add` (once per confirmed line), after Step 4.
* Never lower a price below the price list without the user saying so explicitly.

**Validation:**

* If `{order-lines}` cannot be parsed into items and quantities, ask the user to restate it.

Who it's for

One answer, three teams that use it

Inside sales reps

Enter orders while on the phone

Stock, price and credit are checked as you take the order, so you can tell the customer what will ship.

Create a Dynamics GP order for Contoso: 25 CART-12 cartridges and 2 LP-10 printers, their PO is 55190.

Order desk

Catch duplicate POs before they ship twice

A warning appears if the customer PO is already on another order, so the same goods are not sent twice.

Enter Fabrikam PO 88231 in Dynamics GP for 6 SD-200 docks, but check it is not already on an order.

Credit controllers

See credit limit breaches before entry

Orders that would push a customer over their limit are flagged before the order exists, not after it is stuck.

Would a 9,000 order for Northwind Traders put them over their Dynamics GP credit limit? If not, create it.

How it works

What PopdockAI does when you ask

You give the customer and the items, and your AI assistant runs the Dynamics GP checks before anything is entered. The order is created only after you have seen it and approved it.

01

Ask

You give the customer and the items with quantities.

Your AI tool

02

Check

It checks holds, stock by site, the customer's price and the credit limit.

microsoft-dynamics-gp-get-rm-customer
microsoft-dynamics-gp-get-iv-item
microsoft-dynamics-gp-get-iv-item-quantity
microsoft-dynamics-gp-get-iv-item-price
microsoft-dynamics-gp-get-rm-sales-trx

03

Confirm

You see the full order with any warnings and approve it.

No items found.

04

Create

It creates the order and lines and reads the lines 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-rm-customer

Returns customer records from Dynamics GP Receivables Management, including contact details, class, terms and balances. Filter by salesperson ID, hold, customer name, state, zip, customer balance, customer class and city, and pick the company and the maximum number of records.
get-data

microsoft-dynamics-gp-get-iv-item

Returns inventory item records from Dynamics GP Inventory, including item type, class, costs, units of measure and valuation settings. Filter by item class code, item description, current cost, item number, abc code, item short name, valuation method and item tracking option, and pick the company and the maximum number of records.
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-iv-item-price

Returns item price list records from Dynamics GP Inventory, including price level, unit of measure, quantity breaks and pricing method. Filter by price level, price method, unit of measure, item number, currency ID, item description and item type, and pick the company and the maximum number of records.
get-data

microsoft-dynamics-gp-get-rm-sales-trx

Returns Sales Order Processing documents such as quotes, orders and invoices from Dynamics GP Sales, with the customer, dates, salesperson and document totals. Filter by batch number, customer ID, SOP type, SOP number, salesperson ID, document amount, customer name and document date, and pick the company and the maximum number of records.
run-action

microsoft-dynamics-gp-rm-sales-trx-add

Adds a sales transaction in Dynamics GP through eConnect; GP defaults any field not listed. Requires batch number, document ID, document date, SOP type, SOP number and customer ID. Optional: subtotal, salesperson ID, shipping method, location code, customer PO number and freight amount. Writes to the live Dynamics GP company database.
run-action

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

Adds a sales transaction line in Dynamics GP through eConnect; GP defaults any field not listed. Requires SOP number, item number, SOP type and customer number. Optional: document ID, requested ship date, site ID, item description, unit of measure and unit price. Writes to the live Dynamics GP company database.
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.
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

Sales orders right the first time

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