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.

blog comments powered by Disqus

Blog3ngine dot NET 1.6.1.2
Theme by Daniel Halan

About the author

Daniel Halan Daniel Halan, M.Sc. systems architect in Sweden.

Working primary with Microsoft .NET, Dynamics CRM, XRM & Web Read more...

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


Follow Me
Interesting, online accelerator/incubator for start-ups http://t.co/Xld5ETYD #startup 18 Jan 2012

Microsoft Dynamics Salary Survey 2012

Nigel Frank International would like to invite you to complete our annual survey of global Microsoft Dynamics salaries. The survey will only take a couple of minutes to complete and your response and any personal details will be kept strictly confidential.

Prizes,
1st  iPad2 16gb Wi-Fi + 3G 
2nd Xbox 360 + Kinect 
3rd Kindle Keyboard w/ Free 3G + Wi-Fi 
4th MS LifeCam Studio Webcam 
5th MS Arc Touch Mouse 

You will also receive a FREE copy of the Salary Survey report once it has been compiled. 

Take the Salary Survey 
The survey is available in 12 languages for your convenience.