Posted on 06/07/2021 13:12:20
Hi Adrian,
You are on the right track :)
The AssetCategories property on the ProductViewModel gives you a list of AssetCategoryViewModel.
The AssetCategoryViewModel has both Name and SystemName.
Here is an example:
{
"AssetCategories": [
{
"Name": "Images",
"SystemName": "Images",
"Assets": [
{
"Value": "/Files/Images/test2.jpg",
"Name": "DETAIL2",
"Keywords": "",
"DisplayName": ""
}
]
},
{
"Name": "TestAssetCategory1",
"SystemName": "TestAssetCategory1",
"Assets": [
{
"Value": "/Files/Images/test1.jpg",
"Name": "DETAIL1",
"Keywords": "",
"DisplayName": ""
}
]
}
]
}
Are you using the "Product catalog for ViewModel" app?
Check the app settings for "Asset Categories" and make sure you have included the values you need.
If you still can't make it work then I think we need some more details.
How and where are you trying to use this?
Which version of Dynamicweb is this?