getAttachments

getAttachments

Function
getAttachments(requestOptionsIGetAttachmentsOptions): Promise<{ attachmentInfos: IAttachmentInfo[] }>

Request attachmentInfos of a feature by id. See Attachment Infos for more information.

Use dark colors for code blocksCopy
1
2
3
4
5
6
import { getAttachments } from '@esri/arcgis-rest-feature-service';
//
getAttachments({
  url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0",
  featureId: 8484
});
Parameters
ParameterTypeNotes
requestOptions
IGetAttachmentsOptions

Options for the request.

Returns 
Promise<{ attachmentInfos: IAttachmentInfo[] }>

A Promise that will resolve with the getAttachments() response.

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