How can I get list of custom items

I created custom items under the main treeview in Management client.

I want to get list of this items in SmartClient, so I used this code:

List ItemList = Configuration.Instance.GetItems();

foreach (Item item in ItemList)

    GetMaps(item);

private void GetMaps(Item parent)

{

  List<Item> itemsOnNextLevel = parent.GetChildren();

  if (itemsOnNextLevel != null)

  {

    foreach (Item item in itemsOnNextLevel)

    {

      if (item.Properties.ContainsKey("MapPath"))

        System.Windows.MessageBox.Show([item.Name](https://item.Name) + ", Path: " + item.Properties\["MapPath"\]);

      if (item.HasChildren != [VideoOS.Platform.HasChildren.No](https://VideoOS.Platform.HasChildren.No))

        GetMaps(item);

    }

  }

}

… but I can get only Devices - cameras, microphones, …

I tried to look into examples, but I could not find solution.

How can I get custom items??

You will need to use GetItemConfigurations instead of GetItems. See- https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_configuration.html&tree=tree_search.html?search=getitemconfigurations

I cannot get results with this. My guess is that I’m not using right function call.

What should be correct values for arguments?

I tried with this:

  List<Item> ItemList = Configuration.Instance.GetItemConfigurations(GeoCamDefinition.GeoCamPluginId, null, GeoCamDefinition.GeoCamKind);

What am I missing?

My colleague tested following code and it works. So your code should work as well and maybe you can try following code.

        private void TestGetItemConfigurations()
        {
            Guid SensorMonitorPluginId = new Guid("2a13d169-8803-4ab2-b45b-5c1f1c453c93");
            Guid SensorMonitorCtrlKind = new Guid("57d0ed4b-3baf-4fc0-aa1b-d333a82f2f12");
            List<Item> test = Configuration.Instance.GetItemConfigurations(SensorMonitorPluginId, null, SensorMonitorCtrlKind);
        }