Is there any way of hiding a field in a feature class when publishing to Portal via ArcGIS Pro?
In other words, I want only selected fields to be available in a published service, not all which exists in feature class.
Thank you. I have done that, but the field was available in the REST endpoint. This is an answer I got from a local ESRI representative, but I doubt that this is the correct solution. I guess it should work as suggested above, or am I wrong?
The suggested solution:
Right workflow is to use geodatabase views: https://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-database-view.htm This way you ensure that the feature service will be based on the subset that you define with only the relevant fields.
I would really appriciate your comments on this.
In my case you can enable and disable the fields without any problem. (I have the latest Pro version).
Be sure when you enable / disable a field at the end to Save the changes
The database view is an alternative.
Based on your answer I guess it should work with hiding the fields in ArcGIS Pro. I do not want to create the database view, as I changed which fields are shown or hidden quite dynamically.
I am bit stuck now, hopefully someone from ESRI can give me an answer on how to solve this issue.
Retrieving data ...