Developer forum

Forum » Development » Get Categoryfield values trough the API

Get Categoryfield values trough the API

Keerthy Sethupathy
Reply

Greetings, 

Is their a way to access a products productCategoryField values?

On the ProductObject their is a method called ProductFieldValues, and i am searching for something similar for the CategoryField values?


Replies

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

This is propably solved by now but I'm putting this here if others search for this:

 

var product = Dynamicweb.Ecommerce.Services.Products.GetProductById(productId, null, languageId);

var fieldValue = Convert.ToString(product.GetCategoryValue("MyProductCategory", "MyField"));

 

You must be logged in to post in the forum