---
title: "GetItemsEx"
canonical: "https://docs.dk.is/space/DEV/10355213/GetItemsEx"
format: markdown
---
This function is used to retrieve a list of  TItem  in chunks All products have a Recordid that is an auto increment key that starts with the value 1 and over time as more and more items get added and removed from the system we can get all items using this ID Parameters Used to call the function RecordID - Integer NumberOfRecords - Integer opt -  TItemOptions   Returns Returns the following Array of  TItem   options is used to define additional information related to the item Code Examples Example #1             IItemServiceservice service = new IItemServiceservice()
            {
                BasicSecurityValue = new BasicSecurity() { Username = "ws.dev", Password = "Code2make" }
            };
            TItemOptions options = new TItemOptions() { };
            List<TItem> list = service.GetItemsEx(0, 300, options).ToList();
            List<TItem> result = new List<TItem>();
            result.AddRange(list);
            while (list.Count == 300)
            {
                list = service.GetItemsEx(list[list.Count - 1].RecordId + 1, 300, options).ToList();
                result.AddRange(list);
            }
            tItemBindingSource.DataSource = result;           Videos     Related articles Related issues