GenericClient
- Last UpdatedJul 27, 2026
- 1 minute read
- Engineering
- Integration Service 4.1
- Integrators
Namespace: AVEVA.IntegrationService.DataAPI.SDK
Interface: IGenericClient
Description: GenericClient is used to communicate with Generic ProductCategory products. It provides flexibility for custom data sources and inherits all base methods.
Methods
GenericClient uses all methods from the BaseClient (see Common Methods section below).
Example:
var genericClient = dataApiClient.GenericClient;
// Get datasources
var datasources = await genericClient.GetDataSources();
foreach (var ds in datasources)
{
Console.WriteLine($"Datasource: {ds.Name}");
}
// Get metadata
var metadata = await genericClient.GetMetaData("MyGenericDataSource");
foreach (var kvp in metadata)
{
Console.WriteLine($"{kvp.Key}: {kvp.Value}");
}
// Get tables and data
DataTable tables = await genericClient.GetTables("MyGenericDataSource");
DataTable data = await genericClient.GetTableData(
"MyGenericDataSource",
"CustomTable"
);
// Post custom data
DataTable customData = new DataTable("CustomTable");
customData.Columns.Add("Field1", typeof(string));
customData.Columns.Add("Field2", typeof(int));
customData.Rows.Add("Value1", 100);
AcknowledgementResult result = await genericClient.PostTableData(
"MyGenericDataSource",
"CustomTable",
customData,
""
);