I'm wondering what the easiest way to create a custom widget where I can select one or more parcels and pass the parcel_id attribute to another service.
I would like to use the draw toolbar to draw a geometry and select the parcels that intersect, similar to this example: Feature layer with selection | ArcGIS API for JavaScript
first step: How do I define/cast the parcel layer in my webmap as a FeatureLayer (esri/layers/FeatureLayer)?