Skip to main content
Glama
mafzaal

Dynamics 365 Finance & Operations MCP Server

by mafzaal

d365fo_download_purchase_order

Download purchase order reports as PDF files from Dynamics 365 Finance & Operations for vendor documentation and record-keeping purposes.

Instructions

Download a purchase order report as PDF from D365 Finance & Operations.

This is a convenience tool specifically configured for purchase orders using the PurchPurchaseOrderController. Purchase orders are documents sent to vendors to order goods or services.

To find available purchase orders to download, query the Purchase Order Confirmation Headers entity:

  • Entity name: PurchPurchaseOrderConfirmationHeaderEntity

  • Collection name: PurchaseOrderConfirmationHeaders

  • Key fields: PurchaseOrderNumber, ConfirmationNumber, ConfirmationDate, OrderVendorAccountNumber, TotalConfirmedAmount, dataAreaId

  • Use d365fo_query_entities tool to search for purchase orders

Example query to find purchase orders: d365fo_query_entities( entityName="PurchaseOrderConfirmationHeaders", filter="ConfirmDate ge 2024-01-01", select=["PurchaseOrderNumber", "ConfirmDate", "VendorAccount", "OrderStatus"] )

Args: purchase_order_id: The purchase order ID (e.g., 'PO-000123', 'P00001234') legal_entity: The legal entity/company code (e.g., 'USMF', 'DEMF') save_path: Full path where PDF should be saved (optional, auto-generates if not provided) profile: Configuration profile name (default: 'default')

Returns: Dictionary with download result including saved file path

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
purchase_order_idYes
legal_entityYes
save_pathNo
profileNodefault

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mafzaal/d365fo-client'

If you have feedback or need assistance with the MCP directory API, please join our Discord server