getRelatedItems

getRelatedItems

Function
getRelatedItems(requestOptionsIItemRelationshipOptions): Promise<IGetRelatedItemsResponse>
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
import { getRelatedItems } from "@esri/arcgis-rest-portal";
//
getRelatedItems({
  id: "ae7",
  relationshipType: "Service2Layer" // or several ["Service2Layer", "Map2Area"]
})
  .then(response)

Get the related items. See the REST Documentation for more information.

Parameters
ParameterTypeNotes
requestOptions
IItemRelationshipOptions

Options for the request

Returns 
Promise<IGetRelatedItemsResponse>

A Promise to get some item resources.

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