Developer forum

Forum » Development » EcomProductUnitOfMeasure data in ProductViewModel

EcomProductUnitOfMeasure data in ProductViewModel

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys.,

Is there any way I can get data from EcomProductUnitOfMeasure table into the ProductViewModel?

Or is some service returning this data based on the ProductId?

Thank you,

Adrian


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

It is not in the viewmodel - but you can ask the uom service:

Dynamicweb.Ecommerce.Services.UnitOfMeasureService:

https://doc.dynamicweb.com/apix/api/Dynamicweb.Ecommerce.Stocks.UnitOfMeasureService.html#Dynamicweb_Ecommerce_Stocks_UnitOfMeasureService_GetUnitOfMeasures_System_String_

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you. This is good enough.

Adrian

 

You must be logged in to post in the forum