Developer forum

Forum » Development » dwapi changes in PrimaryOrDefaultGroup

dwapi changes in PrimaryOrDefaultGroup

Anouk van der Veer
Reply

Goodmorning! 

We have a Solution where we use PIM/channels and their website is hosted elsewhere. Their website-partner uses the dwapi to extract product and group data. Recently we've updates the solution from 9.15.5 to 9.20.1 and so the dwapi got updated from 0.14.17 to 0.16.0. This caused problems, as the output of the endpoints had changed regarding the translation of the name in the PrimaryOrDefaultGroup value. I had doubts it was caused by accidental changes in queries or something, but reverting to 9.15.5 fixed the issue and I can reproduce the issue now. I can't find a changelog for the dwapi so I am wondering if I just didin't look hard enough and if this change was by design or an oopsy. More info in the issue below.

So this partner uses the ecommerce/groups/products/search endpoint. They send a RepositoryName, QueryName, ShopID, CurrencyCode, CountryCode, PageSize, CurrentPage and LanguageID. This returns a list of products, with a property PrimaryOrDefaultGroup, which has a Name value. In the older dw-api version this would be a translated name in the language of the LanguageID in the URL.
 

In the newer versions, this value is always that of the default language, despite the LanguageID or CountryCode. 

Is this a bug, and if not: what are the alternatives?

Kind regards,
Anouk


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

there is ecommerce/products/search endpoint but not ecommerce/groups/products/search endpoint - extra "groups" seems to be in your post above. I can reproduce the issue with product has option "Primary" for a grop the product belongs to only (see product edit-Add to group in PIM or Related groups in Ecommerce) on last DW9\DW10. It looks like bug, I have created new task #26804 agains it. Thanks.

BR, Oleg QA

 

You must be logged in to post in the forum