> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a CategoryList using the MDO Agent

> Get a CategoryList through the MDO Agent

```csharp theme={null}
using SuperOffice;
using SuperOffice.CRM.Services;

using(SoSession mySession = SoSession.Authenticate("SAL0", ""))
{
  //get the MDO agent
  using(MDOAgent mdoAgent = new MDOAgent())
  {
    MDOListItem[] categoryList =
    mdoAgent.GetSimpleList("category");

    //loop through the retrieved list and output them on the console
    foreach (MDOListItem item in categoryList)
    {
      Console.WriteLine(item.Name);
    }
  }
}
```

The example above shows how we can use the `GetSimpleList` method available through the `MDOAgent` to retrieve the category list.


## Related topics

- [Get a CategoryList using the ListAgent](/en/api/web-services/howto/company/get-catlist-listagent.md)
- [Working with companies in API](/en/company/dev/index.md)
- [How to get the category list and set category on a contact](/en/api/web-services/howto/company/get-set-category-mdoagent.md)
- [How to get a specific list item](/en/api/lists/services/how-to/get-list-item.md)
- [category](/en/api/mdo-providers/reference/category.md)
- [How to Search using Find Selections](/en/api/search/find-selection/how-to-search.md)
