queryAttachments

Function
queryAttachments(requestOptionsIQueryAttachmentsOptions): Promise<IQueryAttachmentsResponse>

Query the attachments for a feature service layer. See the REST Documentation for more information.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
import { queryAttachments } from '@esri/arcgis-rest-feature-service'

queryAttachments({
url: "http://services.myserver/OrgID/ArcGIS/rest/services/Petroleum/KSPetro/FeatureServer/0",
objectIds: [2, 4],
attachmentTypes: ["image/jpeg"],
returnUrl: true
})
.then(response) // response.attachmentGroups

Parameters

ParameterType
requestOptionsIQueryAttachmentsOptions

Returns 

Promise<IQueryAttachmentsResponse>

A Promise that will resolve with the query response

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