queryAssociations

AMD: require(["esri/rest/networks/queryAssociations"], (queryAssociations) => { /* code goes here */ });
ESM: import * as queryAssociations from "@arcgis/core/rest/networks/queryAssociations";
Object: esri/rest/networks/queryAssociations
Since: ArcGIS API for JavaScript 4.24

The utility network associations model connectivity, containment, and structure relations between assets. This function queries the associations table and return associations for network features in a utility network.

Method Overview

Name Return Type Summary Object
Promise<QueryAssociationsResult>

Returns all associations filtered by the QueryAssociationsParameters in a utility network.

more details
queryAssociations

Method Details

queryAssociations(url, params, requestOptions){Promise<QueryAssociationsResult>}

Returns all associations filtered by the QueryAssociationsParameters in a utility network.

Parameters
url String

URL to the ArcGIS Server REST resource that represents a UttilityNetwork.

The parameters required by this functions include QueryAssociationsParameters, what QueryAssociationsParameters of associations to return, QueryAssociationsParameters and more.

requestOptions Object
optional

Additional options to be used for the data request (will override requestOptions defined during construction).

Returns
Type Description
Promise<QueryAssociationsResult> When resolved, the associations results are returned.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.