Hi all,
When I try to pull data from topic_constant and mobile_app_category_constant I see similar malformed result only with the first element in a returned array.
Resource: topic_constant
Query: SELECT topic_constant.resource_name,
topic_constant.id, topic_constant.path, topic_constant.topic_constant_parent FROM topic_constant
First element in response:
{
"topic_constant": {
"id": "0",
"topic_constant_parent": "topicConstants/-1",
"path": [
""
]
}
}
Second (and other) elements in response:
{
"topic_constant": {
"resource_name": "topicConstants/3",
"id": "3",
"path": [
"",
"Arts & Entertainment"
]
}
}
Comment: As you can see there is no resource_name in first element, id is zero (why?)
Resource: mobile_app_category_constant
First element in response:
{
"mobile_app_category_constant": {
"id": 0,
"name": "/"
}
}
Second (and other) elements in response:
{
"mobile_app_category_constant": {
"resource_name": "mobileAppCategoryConstants/60000",
"id": 60000,
"name": "Google Play"
}
}
Comment: As you can see there is no resource_name in first element, id is zero (why?)
----------
My assumption that response is malformed is because there is no resource_name
All other resources that I query do not have this behaviour.
Tested on multiple customer accounts.
I see this only with two resources, but it may also exist on others.
Other _constant resources do not have this behaviour.
My question is: Is this a bug or a valid element?