1

Empty response when i try filtering geofences by sysname

Тема: Empty response when i try filtering geofences by sysname

hello api response me empty when I try this request

{"itemsType":"avl_resource","propName":"sys_name","propValueMask":"*aduana*","sortType":""},"force":1,"flags":4169,"from":0,"to":0}
{"itemsType":"avl_resource","propName":"sys_name","propValueMask":"=> aduana <","sortType":""},"force":1,"flags":4169,"from":0,"to":0}

Can you help me whit this issue?
What i do wrong?

2

Empty response when i try filtering geofences by sysname

Re: Empty response when i try filtering geofences by sysname

hello

With your request you're trying to filter "itemsType":"avl_resource", not geofences

Since geofences are subItems of resource I recommend you get all geofencei for resource once and then filter them programmatically.
Or if you filter data on Wialon side check documentation

If you need to perform a search in subitems, set the value propitemname for the parameter “propType”. Then, other parameters can have any of these values:
itemsType: "avl_resource",
propName: "zones_library",
sortType: "zones_library"

3

Empty response when i try filtering geofences by sysname

Re: Empty response when i try filtering geofences by sysname

Thank you. I'll make the filter in my app.