Hello everyone,
I am trying to read custom data from a catalog item in the cloud script.
Here's the code. It returns "Top Speed is null" message; however, when I debug the custom data, the data is not null. My question is how can I access the custom data?
if(rivalCar.CustomData == null) { return { "Result": "Custom data null" }; } else if(rivalCar.CustomData["TopSpeed"] == null) { return { "Result": "Top Speed is null" }; } else { var r = rivalCar.CustomData["TopSpeed"]; return { "Result": r }; }