GetEntityGroups(String,String) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetEntityGroups() method retrieves data log groups that are linked to a specified entity and its ancestors, or to any entities.
In this overload of the method, the entity is identified by the entity's name and site name.
'Declaration
Public Overloads Shared Function GetEntityGroups( _
ByVal entName As String, _
ByVal siteName As String _
) As DataSet
'Usage
Dim entName As String
Dim siteName As String
Dim value As DataSet
value = DataLogGrp.GetEntityGroups(entName, siteName)
Parameters
- entName
- Optional filter parameter. Holds the name of an entity. To not include this parameter as a filter, pass a null.
- siteName
- Optional filter parameter. Holds the site name of an entity. To not include this parameter as a filter, pass a null.
Return Value
Returns a DataSet that contains all the records in the Data_Log_Grp table that are linked to records in the Data_Log_Grp_Ent_Link table, or only those records linked to the optionally specified entity or its ancestors. If no matching records are found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
| Column Name | Description |
|---|---|
| grp_id | An integer that is the ID of the data log group. |
| grp_desc | A string that is the description of the data log group. |