Hello,
In Survey123 I am trying to query a DEM raster layer from map lick or coordinates with pulldata @layer but cannot find how to read the stretch.pixel value. Under the layer's service page, Fields is None so not sure what to put in for "attributes"
Survey123 pulldata(@"layer" is for feature layers, feature tables or query enabled map services.
You may be able to achieve this with JavaScript e.g. here's a starting point:
How big is your area of interest and what level of detail do you need the results? I know DEMs are large when converted to vector even larger, but if you had a small are of interest and could generalize the DEM a bit, you could convert it to a polygon layer and the use the point in polygon pulldata method.