> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-worktree-351-fix-webapi-escaped-anchors.mintlify.site/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.
