GetEntityId Method
- Last UpdatedMar 17, 2026
- 1 minute read
The GetEntityId() method retrieves the entity ID for the entity specified by name and site.
Parameters
- entName
- Required. Holds the unique entity name to identify the entity.
- site
- Optional. Holds the ID of the ancestor entity that defines the site at which this entity is located. If null, the entity is above sites or sites are not being used in the system.
Return Value
Returns a Dataset containing the ent_id of the record in the Ent table that matches the specified entity name and, optionally, site. The returned DataRow includes the entity ID. If no matching record is found, an empty DataSet is returned.