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 RequestOptions
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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close