Product/components used and version/fix level:
Cumulocity Production
Detailed explanation of the problem:
Hi, I have measurements in this way.
{
"measurements": [
{
"self": "/measurement/measurements",
"time": "2023-08-28T23:39:35.000Z",
"id": "id",
"source": {
"self": "/inventory/managedObjects/",
"id": "id"
},
"type": "A",
"A": {
"abc": {
"unit": "",
"value": 0.0
}
},
{
"self": "/measurement/measurements",
"time": "2023-08-28T23:39:35.000Z",
"id": "id",
"source": {
"self": "/inventory/managedObjects/",
"id": "id"
},
"type": "A",
"B: {
"xyz": {
"unit": "",
"value": 0.0
}
}
]
}
Now I want to fetch the latest value for all the fragments of type A. I tried
/measurement/measurements?withTotalElements=true&withTotalPages=true&revert=true&dateTo=2023-08-29T00:00:00.000Z&valueFragmentType=A&pageSize=2000&valueFragmentSeries=abc&valueFragmentSeries=xyz
this api but it is fetching only abc fragment values but not xyz values. I also tried custom query but that is also not working. Can we use custom query on measurements? If yes could you please tell me how can i carry out my use case with this? OR could you please tell me how can i achieve this use case with any other way.
Thanks,
Samanyu