Hiding a field/attribute in WFS published from AGOL Hosted Feature Layer

245
2
06-10-2019 05:00 AM
spiskulaspiskula
New Contributor III

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

Tags (4)
2 Replies
deleted-user-38BclWzAeIyq
New Contributor

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.

0 Kudos
spiskulaspiskula
New Contributor III

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.

0 Kudos