• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

Get a CategoryList using the MDO Agent

Some tooltip text!
• 1 minute to read
 • 1 minute to read
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 retrived 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.

In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top