Find Data Tables

Find Data Tables by name.

πŸ‘

Permissions Required

You must have Find permissions to a matching Data Table for it to be included in the results

Method Signature

DataTablesPage Find(Search.Filter filter = null, PagingOptions pagingOptions = null);
async Task<DataTablesPage> FindAsync(Search.Filter filter = null, PagingOptions pagingOptions = null);

Parameters

ParameterTypeDescription
filterSearch.FilterThe filter criteria to search by, or null to fetch all Data Tables.
pagingOptionsPagingOptionspaging options including Size and PageToken
returnsDataTablesPageThe requested page of Data Tables

You can search for matches among the following attributes of the Where class.

NameTypeDescription
TextstringFuzzy matches the data table Name.

Example

/*
 * This example demonstrates finding all Data Tables and
 * printing their names in a list
 */
using Catalytic.Sdk.Entities;
using System.Collections.Generic;

namespace Catalytic.Sdk.Examples
{
    class Program
    {
        static void Main(string[] args)
        {
            var catalytic = new Catalytic.Sdk.CatalyticClient(AccessToken.Default);
            var tables = new List<DataTable>();
            var paging = new PagingOptions { Size = 25 };

            while(paging != null)
            {
                var result = catalytic.DataTables.Find(
                    null,
                    paging
                );

                tables.AddRange(result.DataTables);
                paging = result.NextPageOptions;
            }

            foreach(var table in tables)
            {
                Console.WriteLine(table.Name);
            }
        }
    }
}