FruxonDocs

Priority Software

Access sales orders, customers, inventory items, and A/R invoices from the Priority ERP

The Priority Software integration connects your agents to the Priority ERP through its OData REST API, letting them read and write sales orders, customers, inventory items, and A/R invoices.

Prerequisites

You need:

  • OData Service Root — The base URL of your Priority OData service, including the server, configuration file, and company. For example: https://my.priority-connect.online/odata/Priority/tabula.ini/mycompany.
  • Credentials — Either a Priority API username and password, or a Personal Access Token (PAT, available in Priority v19.1+).

Personal Access Tokens

To authenticate with a PAT, set the username to the PAT value and the password to the literal text PAT. Manage tokens in Priority's REST Interface Access Tokens form.

Setup

  1. Open Integrations from the sidebar
  2. Select Priority Software from the catalog
  3. Click Add Integration Config
  4. Give the config a display name (e.g., "Priority - Production")
  5. Enter the configuration parameters:
    • OData Service Root — Your Priority OData service root URL (server + config file + company)
  6. For authentication, enter your Priority username and password (Basic Auth), or your PAT as described above
  7. Save the config

Using in Your Agent

  1. Open your agent in Agent Studio and select an Agent Step
  2. Under Attached Integration Configurations, click Attach configuration and choose your config
  3. Attach Priority tools from the tools panel
  4. Tools are referenced as priority.query_orders, priority.create_customer, etc.

Querying Data

The query_* tools accept standard OData query options so agents can filter and shape results:

ParameterOData optionExample
filter$filterSTATDES eq 'Open'
select$selectORDNAME,CUSTNAME,TOTPRICE
orderby$orderbyCURDATE desc
top$top50
skip$skip100

Result limits

Priority caps the number of records returned per request via the MAXAPILINES system constant (default 2,000). Use top and skip to paginate through larger result sets.

The get_* tools fetch a single record by its OData key — the entity's primary field (for example ORDNAME for an order, CUSTNAME for a customer).

The create_* and update_* tools accept the record as a JSON object string (record_json) using Priority's OData field names. For updates, supply only the fields you want to change.

Available Tools

Sales Orders

ToolDescriptionAction Type
query_ordersQuery sales orders (ORDERS)ReadOnly
get_orderGet a sales order by key (ORDNAME)ReadOnly
create_orderCreate a new sales orderReversible
update_orderUpdate an existing sales orderReversible

Customers

ToolDescriptionAction Type
query_customersQuery customers (CUSTOMERS)ReadOnly
get_customerGet a customer by key (CUSTNAME)ReadOnly
create_customerCreate a new customerReversible
update_customerUpdate an existing customerReversible

Inventory

ToolDescriptionAction Type
query_itemsQuery inventory items / parts (LOGPART)ReadOnly
get_itemGet an item by key (PARTNAME)ReadOnly

Finance

ToolDescriptionAction Type
query_invoicesQuery A/R invoices (AINVOICES)ReadOnly
get_invoiceGet an A/R invoice by key (IVNUM)ReadOnly

On this page