Hello,
I am calling “inventory/managedObjects” endpoint, to get the list of “c8y_IsDevice”.
The list I am receiving is as expected but whenever I apply the orderby filter it is not coming as expected.
I am retrieving the list by passing query like.
"query":'$filter= has(c8y_IsDevice) $orderby=id desc'
and also use below query
q=$orderby=id desc
I have created few devices with rest API & few with the SDK both devices structure are same, but the only difference is the owner. If I am fetching an all devices which are coming with two groups, one with owner of user (Rest API) & other with micro service name (SDK),
The preference is been giving to the group of the owner of user & then to SDK.
What I am expecting is to fetch the all devices with order by id regardless of owner.
Can you please help me to achieve the same?.