queryAssociations

AMD: require(["esri/rest/networks/queryAssociations"], (queryAssociations) => { /* code goes here */ });
ESM: import * as queryAssociations from "@arcgis/core/rest/networks/queryAssociations.js";
Object: esri/rest/networks/queryAssociations
Since: ArcGIS Maps SDK 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

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

queryAssociations

Method Details

queryAssociations

Method
queryAssociations(url, props, 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 elements, what types of associations to return, moment and more.

requestOptions Object
optional

Additional options to be used for the data request.

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.