CommonClient
- Last UpdatedJul 27, 2026
- 1 minute read
- Engineering
- Integration Service 4.1
- Integrators
Namespace: AVEVA.IntegrationService.DataAPI.SDK
Interface: ICommonClient
Description: CommonClient is a generic client used to construct and use any product category client data. It provides maximum flexibility for working with various datasource types.
Methods
CommonClient uses all methods from the BaseClient (see Common Methods section below).
Example:
var commonClient = dataApiClient.CommonClient;
// Get all datasources regardless of type
var allDatasources = await commonClient.GetDataSources();
foreach (var ds in allDatasources)
{
Console.WriteLine($"Datasource: {ds.Name}, Type: {ds.ProductCategory}");
// Get tables for each datasource
DataTable tables = await commonClient.GetTables(ds.Name);
Console.WriteLine($" Tables count: {tables.Rows.Count}");
}
// Work with specific datasource
DataTable specificData = await commonClient.GetTableData(
"AnyDataSource",
"AnyTable"
);
// Post data to any datasource
DataTable dataToPost = new DataTable("GenericTable");
dataToPost.Columns.Add("Column1", typeof(string));
dataToPost.Rows.Add("Data1");
AcknowledgementResult result = await commonClient.PostTableData(
"AnyDataSource",
"GenericTable",
dataToPost,
""
);