Filter Cameras with groups in Mobile Server JavaScript SDK

Hi everyone, we need to get and filters the cameras that exists in XProtect VMS.

we have two different systems that, and there are some cameras for system one and others for system two, some of the cameras will be shared in both systems.

the issue is we need to have a way to get the cameras and filter them with Group names.

for example we have this javascript code that uses Mobile server to fetch the cameras:

      XPMobileSDK.getAllViews((items: any) => {
        const cams = items?.[0]?.Items?.[0]?.Items?.[0]?.Items ?? [];
        setCameras(cams);
      });

but the response does not included the groups of cameras and in the docs there are no filter params that will help me do that.

Thanks for any help

Hi Abaas,

Could you please clarify what you mean by groups of cameras and how those were setup?

Are these groups which you have setup in the management client?

@Constantina Ioannou​ yes Exactly