Hi everyone,
I am currently working on a GenAI Factory project for Infor LN CE (using the GenAI 2026.x User Guide ). I have successfully set up a custom agent, but I am struggling with the Sales domain.
My Environment:
- ERP: Infor LN (Integration Guide v2025.10 followed ).
- Gateway: ION API Suite
InforLNAPI is fully indexed and pointing to the TRN environment. - Setup: REST Service Management (
ttmtm6120m000) is active for tdapi.slsSalesOrder.
Success Story (Purchasing):I created a tool for Purchasing (tdapi.purPurchaseOrder). It works perfectly: the agent can analyze 322 purchase orders and generate a "Top 3 Suppliers" table with total amounts and volume percentages.
The Issue (Sales & Customers):Since standard LN Agents only cover Projects, Contracts, Quality, and Procurement , I am building a custom tool for Sales using the following source:
- Path:
LN/lnapi/odata/tdapi.slsSalesOrder/Orders. - Goal: Retrieve the "Top 5 Customers by volume in 2025".
Despite the tool being enabled and assigned to the agent, the Assistant often returns "Technical difficulties" or claims "No tool available".
Observations from "Tool History":The OData JSON response seems to be retrieved by the Assistant, but the LLM (Claude Sonnet 4.5/3.7 ) fails to parse the sales order metadata correctly, unlike what it does for the purchasing service.
Questions:
- Has anyone successfully implemented a custom tool for Sales Orders in LN?
- Are there specific API Response Instructions or schema hints needed to help the LLM identify fields like
TotalAmount or SoldToBusinessPartner in the Sales OData stream?
Thanks in advance for your insights!