Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Custom property on Category not showing in API

Vote:
0

I'm quite new to the B2B Commerce product, but I'm trying to add a custom property to the Category entity,

I created the property in Application Dictionary and added this to the Category Entity.

After that I gave the Api access to read and/or modify the field

I would expect the field to show in the api result now, but it is not using the API tester (/api/v1/admin/categories/4c79829c-b898-4900-9df5-9f0100d24dbd)

What am I missing here?

#265258
Oct 18, 2021 11:23
Vote:
0

to show custom properties in the api test you need to add $expand url parameter
in your case the url should be /api/v1/admin/categories/4c79829c-b898-4900-9df5-9f0100d24dbd?$expand=customProperties

#275309
Mar 02, 2022 10:13
Vote:
0

I am the Magento developer 2.1.3  version I'm using. While creating a category, I added a customized variable customer- group. It's providing a text field to enter a group of customers on my localhost. However, the text form to enter the group of customers is not visible on the server.

The customer group has been successfully generated as a database field in both localhost and webserver environments. I'm not sure what I'm doing wrong. Also given full permission to the folder. Please see the two windows below.

#278043
Apr 07, 2022 19:39
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.