pfx-api:fetch, pfx-dsFetch - Fetch Data from Data Source
This component is used to get the required data from Pricefx. It retrieves arbitrary objects from the backend. You can define here filters, sort order and paging. However, some object types are restricted from the general fetch.
Attributes | Description | Required? |
---|---|---|
| Bean ID | yes |
| Type of the Pricefx table (P, C, CX, PX, etc.) | yes |
| Filter of records in the table | yes |
| Returns the number of valid records for a specific filter definition. | no |
| Â | no |
| Used for paging | Â |
| Used for paging | Â |
|  | yes – for |
Â
<to uri="pfx-api:fetch?objectType=P&filter=allProductsFilter"/>
Â
<to uri="pfx-api:fetch?filter=pxCarsFilter&objectType=PX&batchedMode=true&batchSize=5000"/>
<split>
<simple>${body}</simple>
<to uri="pfx-api:fetch?filter=pxCarsFilter&objectType=PX"/>
<log message="${body}"/>
</split>
You cannot tamper the body before pfx-api:fetch
call in split, otherwise the call would not recognize batch and fetch without batching.
<pfx:filter id="allProductsFilter" resultFields="sku,label">
<and/>
</pfx:filter>
<pfx:dsFetch id="fetchAllProducts" objectType="P" filter="allProductsFilter"/>
IntegrationManager version 5.8.0