Configurable Lookup Columns Description
Column | Description |
---|---|
Name | Identifier of the Lookup operation. It will need to be referenced in the code. |
userSourceType | Type of the table. LookupConfiguration has been tested with PX/PP/PCOMP tables and with Datamart, or Data Source. |
selectedFields | Map in the JSON format. Keys of this map will be referenced in the code. After the lookup is performed, there will be record’s data under these keys in Groovy Map. Values match either ColumnNames or atributeIds. |
key1Field | Column name or attributeId. Value of that column needs to match key1 of the current context. In PLI and PGI, key1 is always SKU. If empty, the lookup will be cached rather than batched – because values will not differ for different products. |
key2Field | Column name or attributeId. Value of that column needs to match key2 of the current context. In PLI and PGI, key2 is always secondaryKey. Take into consideration that while still batched, constructed filter needs to contain |
key1Transformation/key2Transformation | Path to the function which can transform a PGI/PLI key into a different lookup value. Useful when the data has plain structure (not hierarchical), but it is less granular than line items. |
customFilter | Any filter which will be applied to data lookup. It supports tags which are dynamically resolved at runtime:
|
sortByField | How data should be sorted on the database level if more than one entry is returned. |
checksConfig | Map defining behavior in case something goes wrong. Keys in the map are types of error, while values define how to handle it. Cases when the check is performed:
|
IsUsingDependencyLevelHierarchy | Allows you to turn on and off (by setting Yes/No) fallback on parent Dependency Levels. Integration to complex PSP mechanism. |