Hello,
I have an AGOL Hosted Feature Service that is shared as a WFS. In the resulting WFS all of the source attributes/fields of the source Feature Service are exposed. My requirement is not to return/include OBJECTID and Shape__Length attributes in WFS. Is this possbile with AGOL please ?
Regards
go to the item details page of the hosted feature service and create a view layer first. filter the view layer as needed and then try creating your WFS.
It does not look like WFS can be published from a View. And even after fiddling with Update Definition
https://developers.arcgis.com/rest/services-reference/update-definition-feature-service-.htm
and setting some of the fields to visible:false they still come through in WFS endpoint.