Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

StringDictionary: no key returned through ServiceAPI

Found in

EPiServer.Commerce 9.24.1

Fixed in

EPiServer.ServiceApi 2.1.1

(Or a related package)

Created

Nov 15, 2016

Updated

Jan 26, 2017

State

Closed, Fixed and tested


Description

When using ServiceApi to get an entry, The response only contains the value and no information about the key in each metadata field?
For example.
In CommerceManager, try to update an entry with metadata key="key1" and value="value1"

The answer through ServiceApi,

"name": "Test",
"type": "StringDictionary",
"data": [

{ "language": "en", "value": "en;value1" }

]

There might be the same issue when StringDictionary type works with POST/PUT to the ServiceAPI