The pricefx_acc_ag_get_datamart_product_transactions tool returns the most recent sales transactions of one product from the transaction Datamart that Accelerate Agents uses. You can filter the transactions by time period, location, customer attribute, or a numeric condition, such as margin. You can filter the transactions by time period, date range, location, product attribute, or a numeric condition, such as margin.
Tool Name – pricefx_acc_ag_get_datamart_product_transactions
Title – Search Datamart: product transactions with optional advanced filters (period, location, condition)
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 |
Product SKU. Not case-sensitive. Spaces are ignored. |
|
|
Yes, if |
Full product label. Not case-sensitive. Spaces are ignored. The label must match exactly: part of a label does not find the product. The tool ignores this parameter when |
|
|
No |
Time period unit:
Default: no time limit. |
|
|
No |
Number of period units to look back. Default: 1. |
|
|
No |
Name of the location field to filter by, for example country or region. |
|
|
No |
Locations to include, for example Germany and France. A transaction matches when it has any of the values. |
|
|
No |
Name of the customer field to filter by, for example customer group or segmentation. |
|
|
No |
Text that the customer field contains. Not case-sensitive. Requires |
|
|
No |
Name of a numeric field to compare, for example margin or discount. |
|
|
No |
Comparison:
Default: equals. |
|
|
No |
Value to compare with: a number (10, 0.7) or a percentage (5%). Requires |
|
|
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, 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 always reads the transaction Datamart that is configured for Sales Insights or, if that is not set up, for Customer Insights. You cannot choose another Datamart.
-
The tool returns at most 10 transactions per call.
-
Field names are matched loosely. The tool compares names without regard to case or spaces, and also matches part of a field name, label, or description. The tool uses the first matching field, so a short name such as margin can match a different field than you expect.
-
The time period starts at the beginning of a month or day. For example, month with 1 returns transactions from the start of the previous month, which includes the current month.
-
If the location field is not found, or
locationAttributeNameInputis not given, the tool looks for the location values in all text fields named like country, region, area, city, or location. -
If the condition field is not found, the tool ignores the condition and does not report an error.
-
A percentage in
conditionValueInputis converted to a fraction: 5% becomes 0.05. -
The date range filters on the pricing date. You can give
dateFromInput,dateToInput, or both. -
When you give
dateFromInputordateToInput, the tool ignoresperiodNameInputandperiodValueInput.
Errors
|
Situation |
Error Message |
|---|---|
|
No product matches the SKU or label, or neither is given |
|
|
Neither Sales Insights nor Customer Insights is configured |
|
|
The configured Datamart does not exist |
|
|
The Datamart has no pricing date field |
|
|
The customer attribute field is not found |
|
|
|
|
|
|
|
|
|
|