Hi all, does anyone know if it's possible to retri...
# suitecommerce
c
Hi all, does anyone know if it's possible to retrieve custom commerce category field values from the API (/api/navigation/v1/categorynavitems) used to fetch commerce category data? I'm not able to find documentation on this specific API, so just curious if anyone has had experience or knows of a better way. Thank you.
c
@Cory I could not find documentation on this topic either. I solved this by pulling the field through the ServiceController. If anybody knows a better way please share.
s
Something like this:
Copy code
Application.on('after:Category.get', function (CategoryModel, category) {
    var lookupResults = nlapiLookupField('commercecategory', category.internalid, [
        'yourcustomfield'
    ]);
    category.customfield = lookupResults.yourcustomfield
});