Home
Activities field element
Lists the field element types that can appear in an Atom entry document produced by or sent to the API.
A single Activity entry can contain one or more fields of each type. The <snx:field> element that defines a field in an Activity entry is in the http://www.ibm.com/xmlns/prod/sn namespace.
snx:field attributes
Attribute How treated on input Description fid Required when updating, not posting. Unique identifier of the field. This identifier is assigned by Activities. You do not need to provide a value for this attribute if you are creating a field, but specify a value for this field if you are updating, replacing, or deleting a field. hidden Optional If present, specifies that the field is hidden. name Required Field name. position Required Position of the field in the containing Activity entry's array of fields. Use numbers separated by large increments to allow for repositioning. For example, use 1000, 2000, 3000, and so on. type Required Defines the field type. The following values are supported:
- date
- file
- link
- person
- text
Example
: The following sample is the content of a standard entry that contains fields of different types.... <content type="html">Don Quixote begins his adventure to save Dulcinea del Toboso from the evil windmills.</content> <snx:field name="Link Field" fid="B2CG09219C73BB73162A79E0A9951B000007" position="1000" type="link" > <link href="http://www.ibm.com" /> </snx:field> <snx:field name="Text Field" fid="D7AG09219C73BB73162A79E0A9951B000009" position="2000" type="text" > <summary type="text/plain">Don Quixote's Adventure</summary> </snx:field> <snx:field name="Date Field" fid="DC5G09219C73BB73162A79E0A9951B00000B" position="4000" type="date" > 2008-06-12T04:00:00Z </snx:field> <snx:field name="File Field" fid="6B1G09219C73FC893188AEDCA47086000002" position="5000" type="file" > <link rel="enclosure" type="image/jpeg" href="http://localhost:8080/oa.web.coreui/service/download/ 57EG09219C73DFD08F30C15F32D032000006/Winter.jpg" size="105542"/> <link rel="edit-media" type="image/jpeg" href="http://localhost:8080/oa.web.coreui/service/download/ 57EG09219C73DFD08F30C15F32D032000006/Winter.jpg" size="105542"/> </snx:field> <snx:field name="Person Field" fid="FE7G09219C73DFD08F30C15F32D032000002" position="8000" type="person" > <name>carl_smith@acme.com</name> <snx:userid>937965j0-4f0c-1028-5a06-db07163b51b2</snx:userid> <email>carl_smith@acme.com</email> </snx:field>
If you access this same version 2.0 entry from a version 1.0.x feed, the field information is included in the <content> element. For example:
<content type="html"> Link Field: <a href="http://www.ibm.com">IBM</a>< BR>Text Field: Don Quixote's Adventure<BR>Date Field: Thu Jun 12 00:00:00 EDT 2008<BR> File Field: <a href="http://localhost: 8080/oa.web.coreui/service/download/57EG09219C73DFD08F30C15F32D032000006/ Winter.jpg">Winter.jpg </a><BR>Person Field: carl_smith@acme.com<BR><BR> Don Quixote begins his adventure to save Dulcinea del Toboso from the evil windmills.</content>
For more information about each type of field element, see the field type topics that follow.
- Date field
Defines how to specify a date field in an activity entry.- File field
Defines how a file field is represented as in Atom format.- Link field
Defines how to specify a link field in an activity entry.- Person field
Defines how to specify a person field in an activity entry.- Text field
Defines how to specify a text field in an activity entry.