getTable method

ServiceFeatureTable? getTable({
  1. required int layerId,
})

Returns a service feature table object from the ID of a layer or table in the service.

If a table instance for the layer already exists in ServiceGeodatabase.connectedTables, the existing object will be returned. Otherwise, a new ServiceFeatureTable will be created.

If no table or layer exists in the service with the given ID, an ArcGISExceptionType.commonInvalidArgument error is thrown.

Parameters:

  • layerId — The layer id for which to create the table.

Return Value: A table instance for working with the table or layer in the feature service.