We are trying use a view layer inside of a web experience, to be able to export a data table, but with limited fields-hence we created a view layer from a hosted feature service. We generated the view layer from the hosted feature service so the exported table would reflect the attributes/fields in the view, while still retaining the data in the original hosted feature layer for other uses.
However, the Web Experience, and an Instant Apps (we tested to see the behavior) are reverting to exporting a CSV table with ALL the fields from the original hosted feature layer and don't honor the fewer number of fields in the view.
This is our workflow.
- Publish Hosted Feature Layer
- Create View with hidden fields
- Create Web Map with View layer
- Create an experience builder application
- Add WebMap
- Add layers widget to the widget toolbar and enable export action from the view layer in the data tab
- Set data action for export
We have reported the bug to ESRI support team and would like to see the layers widget export the view layer fields not the original feature layer view!