Originally posted by **alexanderkurilenko** July 10, 2024
Dear experts,
Our customer has a customization to search/scan product by custom identificator; The response of this custom Search/Scan is product master with preselected color dimension; (So cashiers need to select only size dimension to select a variant); This logic works as expected from the cartView(salesFlow) but not in inventory (e.g. StockCount or InventoryAdj);
1) Open any inventory view
2) Search/Scan for the product (Response is Product master color dimension populated)
![image](https://github.com/microsoft/Dynamics365Commerce.Solutions/assets/11898987/5babdd33-1132-4604-9c7f-993b47447f1a)
3) Prepopulated dimension (color) is ignored (during variant selection); Undefined value is passed;
![image](https://github.com/microsoft/Dynamics365Commerce.Solutions/assets/11898987/b4a1de89-8512-4195-8054-c4eca9c99681)
Our customer extremely wants Scan to work the same way in all views in POS; Is it possible to add preselected dimensions to the call
var selectProductVariantClientRequest = new Commerce.Products.SelectProductVariantClientRequest(product, undefined, editResult.correlationId, editResult.title); Replace undefined <-> Populated dimensions;
Many thanks!
Discussed in https://github.com/microsoft/Dynamics365Commerce.Solutions/discussions/311