AP Invoice AI Agent Fetching Incorrect (Outdated) Invoice Data from REST API
Summary:
I have created an AP Invoice AI Agent using the HTTP GET REST API business object. While the agent is functioning, the data it retrieves is incorrect.
For example, when I ask for the most recently created invoice, the agent returns details from an invoice created in 2023, even though there are invoices from the current year (2026). In fact, it consistently retrieves data from 2023 instead of fetching the latest records.
I tested the API endpoints separately:
/fscmRestApi/resources/11.13.18.05/invoices?orderBy=InvoiceDate:desc→ returns the latest data correctly./fscmRestApi/resources/11.13.18.05/invoices?liInvoiceDate:asc→ returns older data.
I attempted to use both approaches, but the AI agent still fails to return the correct (latest) invoice data.
0