The pricefx_acc_ag_get_agents_customer_transactions tool returns the most recent sales transactions of the customer behind an Agent action item, for example an Unprofitable Account action. The tool finds the Datamart and the customer from the action item. You can also name a Datamart and a customer directly.
Tool Name – pricefx_acc_ag_get_agents_customer_transactions
Title – Agent Action: get customer transactions linked to an Agent action item or a datamart
Type – Private
Access Profile: Configurator
This tool is only available with the Accelerate Agents 1.6.
Permissions
The tool is available only to the Configurator access profile when tool access control is on.
Parameters
|
Parameter |
Required |
Description |
|---|---|---|
|
|
Yes, if |
Unique name of the Agent action item. Not case-sensitive. Spaces are ignored. |
|
|
Yes, if |
Technical name of the Datamart to read. Used only together with a customer. |
|
|
Yes, if |
Customer ID. Not case-sensitive. Spaces are ignored. Optional with an action item: the tool then finds the customer from the action item. |
|
|
No |
Full customer name, used when |
|
|
No |
Maximum number of transactions to return, up to 10. Default: 10. |
|
|
No |
Names of extra Datamart fields to include in the result, in addition to the configured default fields. |
|
|
No |
First day of the date range, in yyyy-MM-dd format, for example 2025-01-01. The tool returns transactions on or after this date. |
|
|
No |
Last day of the date range, in yyyy-MM-dd format, for example 2025-12-31. The tool returns transactions on or before this date. |
Output
The tool returns a list of transactions for the customer, newest first by pricing date. Each transaction includes the default fields configured for Accelerate Agents and the fields from transactionFieldsInput, up to 20 fields in total. Money values are rounded to 2 decimal places and shown with the currency symbol.
Behavior and Limitations
-
The tool returns at most 10 transactions per call.
-
The tool filters transactions only by date range. To filter by time period, location, or values, use the Search Datamart - Customer Transactions tool.
-
The Datamart must have the same field names as the configured transaction Datamart. The tool takes the field names it returns and the customer ID field from the Accelerate Agents configuration, and does not check them against the Datamart it reads. If the field names differ, the query fails.
-
If the action item's Agent detected several customers, the tool uses the first one.
-
To get transactions for a customer without an action item, use the Search Datamart - Customer Transactions tool.
Errors
|
Situation |
Error Message |
|---|---|
|
Neither |
|
|
|
|
|
No action item has the given name |
|
|
No customer can be found from the action item or the input |
|
|
Neither Sales Insights nor Customer Insights is configured |
|
|
The Datamart does not exist |
|
|
The Datamart has no pricing date field |
|