Undocumented CAML Field Element types

by Daniel Halan 28. July 2007 23:27

The documentation on MSDN defines 11 different field types, but inside SharePoint administration you can specify more types when creating a column. such as "Person or Group" and "Calculated". These types are not documented but are possible to set in the type attribute. Here is the whole list:

AllDayEvent
Specifies an all day event. 

Attachments
Contains attachments. 

Boolean
Contains Boolean values that are stored in the database as 1 or 0

Calculated
Contains calculated values. 

Choice
Specifies a predetermined set of values that can be used to enter data into the field. 

Computed
Specifies an abstract field type that depends on other fields for its content and definition. 

ContentTypeId
Contains a content type ID.  

Counter
Contains an integer used for internal ID fields. 

CrossProjectLink
Specifies a link between projects in a Meetings Workspace site. 

Currency
Contains currency values formatted based on a specific locale. 

DateTime
Contains date and time values. 

Error
Contains errors. 

File
Contains files. 

GridChoice
Specifies a Choice field for a data sheet. 

Guid
Contains GUIDs. 

Integer
Contains positive or negative integer values. 

Lookup
Contains references to values in other lists. 

MaxItems
Contains the maximum number of items. 

ModStat
Specifies Content Approval status. 

MultiChoice
Contains multiple values per list item. 

Note
Specifies a field that can contain multiple lines of text. 

Number
Contains floating point numbers. 

PageSeparator
Inserts a page break in a survey list. 

Recurrence
Specifies a field used in calendars for recurring events and, like computed fields, an abstract field type that depends on other fields for its content and definition. 

Text
Contains a single line of text. 

ThreadIndex
Contains the ID that indicates the relative position of a message within a conversation thread. 

Threading
Specifies a field that is used in the creation and display of threaded Web discussions. 

URL
Contains hyperlinks. 

User
Specifies users of a SharePoint site. Same as "Person or Group" in STS.

WorkflowEventType
Specifies a workflow event type. 

WorkflowStatus
Specifies workflow status. 

Example:
<Field ID="{04436D2F-67D9-48bd-9B56-B3D27EA6D3EF}"
            Name="Verifiers"
            DisplayName="Verifiers"
            Type="User"
            ...

            />

 


UPDATE: Found a more complete definition of the Field Element (then the one in CAML documentation), in MSDN List Schema documentation.

Blog3ngine dot NET 3.0.0.0
Theme by Daniel Halan

About the author

Daniel Halan Daniel Halan, M.Sc., Microsoft Windows Azure Advisor Software Architect and Lead Developer from Sweden, currently in Bangkok.

Working primary with Microsoft .NET, Windows Azure, DDD, CQRS and some Dynamics CRM  Read more...

The content of this site are my own personal opinions and do not represent my employer's view in anyway.

Month List