A view is a saved configuration for how records of an object are displayed: which fields appear, their order, whether they’re visible, and any filters or groups applied. UseDocumentation Index
Fetch the complete documentation index at: https://docs.twenty.com/llms.txt
Use this file to discover all available pages before exploring further.
defineView() to ship pre-configured views with your app — typically a default index view for each custom object you create.
src/views/example-view.ts
Key points
objectUniversalIdentifierspecifies which object this view applies to. It can be a custom object you defined or a standard Twenty object.keydetermines the view type —ViewKey.INDEXis the main list view for the object.fieldscontrols which columns appear and in what order. Each field references afieldMetadataUniversalIdentifier.- You can also declare
filters,filterGroups,groups, andfieldGroupsfor advanced configurations. positioncontrols ordering when multiple views exist for the same object.
How views show up in the UI
A view by itself isn’t reachable from the sidebar. To make it appear there, pair it with a navigation menu item of typeVIEW that points at the view’s universalIdentifier. That’s the canonical pattern: every custom object typically ships a default view + a sidebar entry that opens it.