Connectors

/

Microsoft Dynamics 365 Business Central

/

Draft a Business Central purchase order from a Resource Management purchase order
Write
Cross-Connector

Draft a Business Central purchase order from Resource Management

For buyers who want a Resource Management purchase order created in Business Central, with checks and a draft first, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Draft a Business Central purchase order from a Resource Management purchase order
Draft a Business Central purchase order from the Resource Management purchase order PO-2291 on Riverside Tower.
PO-2291 has no copy in Business Central, and the vendor Contoso Supplies is a single unblocked match. - Vendor: V00118 Contoso Supplies, order date today - Line 1: item 10482 Plasterboard 12.5 mm, quantity 400, $6.80 - Line 2: item 10517 Corner bead 3 m, quantity 150, $2.10 - Left out: Line 3 Fire collar 110 mm, item is blocked Shall I create this purchase order with the two lines?
Microsoft Dynamics 365 Business Central
Sample figures. Your results come from your own account.
procore-get-materials-mgmt-purchase-orders
procore-get-materials-mgmt-purchase-orders-line-items

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

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

Purchase orders are retyped line by line

A buyer copies a Resource Management purchase order into Business Central by hand, vendor first and then every line. One typo or missed line creates a mismatch that appears only when the invoice arrives.

Without PopdockAI

  • Open the Resource Management purchase order and its lines
  • Search Business Central for the vendor and each item
  • Retype quantities and dates line by line
  • Find the mismatch when the invoice arrives

With PopdockAI

  • Business Central checked for an existing copy first
  • Vendor and items resolved, with problem lines left out and listed
  • You see the full draft and say yes before anything is written
  • The new order and its lines read back after creation

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 in Business Central the purchase order that corresponds to the Resource Management materials purchase order {purchase-order-name} (narrowed to project {project-name} if given), but only after showing the draft and getting an explicit yes.

**Step 1: Read the purchase order (procore-resource-management server)**

Call `procore-get-materials-mgmt-purchase-orders` with `name.contains` set to {purchase-order-name} and `project-name.contains` set to {project-name} when it is not empty. If more than one matches, list them and stop. Keep name, vendor, project-name, estimated-delivery-at and original-contract-delivery-date. Then call `procore-get-materials-mgmt-purchase-orders-line-items` with `purchase-order-name` set to the exact name and keep line-number, item-name, quantity-ordered and contract-delivery-at.

**Step 2: Make sure Business Central does not already have it (business-central server)**

Call `business-central-get-purchase-transaction` with `document-number` set to the Resource Management name, then again with `buy-from-vendor-name.contains` set to the vendor and check vendor-order-number. If a document exists, report it and stop.

**Step 3: Resolve the vendor and the items**

Call `business-central-get-vendor` with the vendor as `name.contains`. If there is not exactly one match, or it is blocked, report that and stop. For each line call `business-central-get-item` with the item-name as `description.contains` and keep item-number, blocked and last-direct-cost. Lines whose item is missing, blocked or ambiguous are left out and listed.

**Step 4: Show the draft and ask**

Show the vendor-number, order date (today), requested receipt date, and every line to be created with item-number, description, quantity and direct unit cost, plus the lines left out and why. Ask the user to answer yes to create it. Do nothing further until they do.

**Step 5: Create and confirm**

After an explicit yes, call `business-central-create-purchase-order` once with `vendor-number` and `pay-to-vendor-number` both set to the vendor number, `order-date` and `requested-receipt-date`. Then call `business-central-create-purchase-order-line` once per approved line with the number returned as `document-number`, `line-type` Item, `number-on-line` set to the item number, `quantity`, `direct-unit-cost` and `expected-receipt-date`. Then call `business-central-get-purchase-transaction-line` with the document number and report what was stored.

**Rules & Guidelines:**

* `procore-get-materials-mgmt-purchase-orders` and `procore-get-materials-mgmt-purchase-orders-line-items` are on the procore-resource-management server. All `business-central-*` tools are on the business-central server.
* The only tools allowed to write are `business-central-create-purchase-order` and `business-central-create-purchase-order-line`, only on the business-central server, only once, and only after the user says yes to the draft in Step 4. Never call any other create, update or delete tool on either server, and never change the Resource Management purchase order.
* Do not create the vendor or the items. Do not guess a unit cost; if last-direct-cost is empty or zero, list the line as needing a price and leave it out.

**Validation:**

* If nothing matches in Step 1, or Business Central already has the document, stop and say so.
* If the user does not say yes, create nothing and say that nothing was changed.
* If a create call fails, report the error and which lines were not created, and do not retry.

Who it's for

One answer, three teams that use it

Buyers

Stop retyping purchase orders

Get a Resource Management order drafted in Business Central with vendor and lines already filled in.

Draft a Business Central purchase order from Resource Management purchase order PO-2291.

Procurement managers

Keep both systems in step

Make sure an order raised in Resource Management exists once in Business Central, with problems listed.

Does Business Central already have a copy of Resource Management purchase order PO-2305 on Northwind Plaza?

Accounts payable

Avoid mismatches at invoice time

See which lines were left out for a blocked or missing item before an invoice arrives.

Show me the draft for PO-2310 from Contoso Supplies and which lines you would leave out.

How it works

What PopdockAI does when you ask

You name the purchase order and your AI assistant checks Business Central and builds the draft. It writes only after you have seen the draft and said yes.

Ask

You give the Resource Management purchase order name and optionally the project.

Your AI tool

Check

It reads the order and lines, makes sure Business Central has no copy, and finds the vendor and each item.

procore-get-materials-mgmt-purchase-orders
procore-get-materials-mgmt-purchase-orders-line-items

Confirm

You see the draft with every line, and the lines left out and why, and answer yes.

No items found.

Create

It creates the purchase order and its lines, then reads them back and reports what was stored.

Your AI tool

What PopdockAI provides

The tools behind the answer

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

get-data

procore-get-materials-mgmt-purchase-orders

Returns Procore Resource Management materials purchase orders with vendor, status, project and contract delivery date. Filter by status and project name.
get-data

procore-get-materials-mgmt-purchase-orders-line-items

Returns the line items of Procore materials purchase orders, with quantities and item details. Filter by purchase order.
Read only.Nothing in Microsoft Dynamics 365 Business Central 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

One purchase order, copied once and accurately

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

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