Create an <str> element in the views.xml file with the corresponding all_customobject1 key attribute.
A custom view with the id="all_customobject1" attribute in the <view> element is declared in the first line of the following code:
<str key="all_customobject1">
<![CDATA[<?xml version="1.0"?>
<view type="table">
<viewname>$view_od_co1$</viewname>
<viewstyle>table-layout:fixed;width:100%;font-family:Segoe UI;fontstyle: normal;font-weight:normal;font-size:8pt;color:Black;font-charset:0</ viewstyle>
<viewtime>0</viewtime>
<linecolor>8421504</linecolor>
<linestyle>3</linestyle>
<gridlines>1</gridlines>
<collapsestate/>
<rowstyle>background-color:window;color:windowtext</rowstyle>
<headerstyle>background-color:#D3D3D3</headerstyle>
<previewstyle/>
<arrangement>
<autogroup>0</autogroup>
<collapseclient/>
</arrangement>
<multiline>
<width>0</width>
</multiline>
<column>
<type>string</type>
<heading>Name</heading>
<prop>http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000- 000000000046}/od%20Name</prop>
<width>50</width>
<style>padding-left:3px;;text-align:left</style>
<editable>1</editable>
<userheading>Name</userheading>
</column>
<column>
<type>string</type>
<heading>Description</heading>
<prop>urn:schemas:contacts:sn</prop>
<width>426</width>
<style>padding-left:3px;;text-align:left</style>
<editable>1</editable>
<userheading>Description</userheading>
</column>
<orderby>
<order>
<heading>Name</heading>
<prop>http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000- 000000000046}/od%20Name</prop>
<type>string</type>
<sort>asc</sort>
</order>
</orderby>
<groupbydefault>0</groupbydefault>
<previewpane>
<markasread>0</markasread>
</previewpane>
</view>]]>
</str>
The views.xml file defines columns for displaying objects in grids. In this example, the all_customobject1 view displays all custom objects in the top-level folder in Microsoft Outlook.
In the previous example code, you see a column element in the custom view for the Name field and another column element for the Description field. Within the column element, there is a prop element. The prop element provides the object property name, and is written in a special format. All Microsoft Outlook custom fields, like the Name field, are in the following format:
http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/"
The Name field is then appended to the Microsoft Outlook custom field the with the user_field id from the od_basic_mapping.xml.
NOTE: Any spaces in the text string must be replaced with %20.
All Microsoft Outlook native fields take the following format:
urn:schemas:contacts:sn" (LastName), "urn:schemas:contacts:givenName" (FirstName)
For more information on native Microsoft Outlook properties, see your Microsoft documentation.