Has anyone successfully overridden the default fie...
# suitecommerce
w
Has anyone successfully overridden the default field set for matrix child items? I created a new field set called
matrixcache
in website setup with only four fields. When I run the Item API with the following parameters:
/api/items/bulk?matrixchilditems_fieldset=matrixcache&fields=itemimages_detail,isinstock,matrixchilditems_detail,itemoptions_detail,urlcomponent,commercecategory
the results still include all of the fields defined in the default
matrixchilditems
fieldset. What am I doing wrong?
s
I'm not an expert on that parameter but my guess is that it is because it only acts as an overrider when you specify a field set that includes a matrix child items field set. If you specify the matrixchilditems_detail field set as a field, for example, in your request then the API is going to retrieve that.
So, for example, my details field set has the matrixchilditems_detail field set in it. If I wanted to create a request that used the details field set but not the matrixchilditems_detail field set, then that's when I would use that parameter. So, something like this, perhaps:
Copy code
/api/items?fieldset=details&matrixchilditems_fieldset=matrixcache
w
let me try that
I sure wish there was better documentation on this
s
Firstly, did that work as how I described it?
Secondly, I can request an improvement on the documentation
w
not sure yet
ok this worked, but the details fieldset has more fields than I need, so it is still too big to process
can I just get specific fields, but use the matrixchilditems_fieldset with it?
s
Well, I think you would need to create both a new field set and a child matrixchilditems fieldset and then do it that way
w
Yeah that's what I ended up doing last night, but it's still too much data for my Map/Reduce script. I'm going to have to re-work the MR script.
s
Have you considered just setting up a product feed? You could just create a generic CSV file of the data you need https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/chapter_1535554720.html