Skip to contents

Retrieves tabular data from AGOL layers and tables, even when number of rows exceeds maximum record count.

Usage

fetchAllRecords(
  data_path,
  layer_number,
  token,
  geometry = FALSE,
  where = "1=1",
  outFields = "*"
)

Arguments

data_path

Feature service URL

layer_number

Layer number

token

Authentication token (not needed for public layers)

geometry

Include spatial data columns? Works with points, not tested with other geometry types

where

Query clause specifying a subset of rows (optional; defaults to all rows). See AGOL REST API documentation.

outFields

String indicating which fields to return (optional; defaults to all fields). See AGOL REST API documentation.

Value

A tibble