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

How to get all lists

Some tooltip text!
• 1 minute to read
 • 1 minute to read

To get all available lists, use the Lists keyword.

  • RESTful REST API
  • HTTP RPC Agent API
  • WebApi Proxy API
GET https://{{env}}.superoffice.com/{{tenant}}/api/v1/List 
Authorization: Bearer {{token}}
Accept: application/json; charset=utf-8

Ironically, it's not possible to get all lists from the List endpoint. Use the MDO endpoint to get all built-in and user-defined lists.

This has some limitations in that the results do not specify if the list uses Groups and Headings. For that, use the RESTful REST List endpoint.

POST https://{{env}}.superoffice.com/{{tenant}}/api/v1/Agents/MDO/GetList HTTP/1.1
Authorization: Bearer {{token}}
Accept: application/json; charset=utf-8
Content-Type: application/json; charset=utf-8

{
  "Name": "Lists",
  "ForceFlatList": false,
  "AdditionalInfo": "",
  "OnlyHistory": false
}

Ironically, it's not possible to get all lists from the ListAgent. Use the MDO endpoint to get all built-in and user-defined lists.

This has some limitations in that the results do not specify if the list uses Groups and Headings. For that, use the RESTful REST List endpoint.

var config = new WebApiOptions(tenant.WebApiUrl);
config.Authorization = new AuthorizationAccessToken("8A:Cust12345.Example-Token", OnlineEnvironment.SOD);
var mdoAgent = new MDOAgent(config);

var allLists = mdoAgent.GetSimpleListAsync("lists").Result;

Back

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