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
Parameter | Type | Description |
---|---|---|
filter | Search.Filter | The filter criteria to search by, or null to fetch all Data Tables. |
pagingOptions | PagingOptions | paging options including Size and PageToken |
returns | DataTablesPage | The requested page of Data Tables |
You can search for matches among the following attributes of the Where
class.
Name | Type | Description |
---|---|---|
Text | string | Fuzzy 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);
}
}
}
}
Updated almost 3 years ago