b408000 - b417fff Elements

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

A task-level enterprise custom field value.

<b408000>
    CustomFieldValue
</b408000>

Attributes

Attribute

Description

DurationFormat

Specifies the format for a duration custom field value (days, weeks, months, and so on). For more information, see DurationFormat Element.

Parent Elements

Task

Occurrences

Minimum: 0

Maximum: 1 of each unique element name

Text Value

A text value is required. This text specifies the enterprise custom field value for the task.

NoteNote

The text value must match the data type required by the custom field definition.

Remarks

The name of the XML element that stores the enterprise custom field value corresponds to the hexadecimal representation of the custom field ID.

Table 1 lists the valid range of custom field IDs for task-level enterprise custom fields in both decimal and hexadecimal format.

Table 1. Task-level Enterprise Custom Field IDs

Custom Field ID range (decimal)

Custom Field ID range (hexadecimal)

188776448 – 188841983

b408000 – b417fff

For more information, see Custom Field Data in XML.

Example

The following example shows three different representations of enterprise task custom field data.

Element

Decimal value of FieldID

Description

b408011

188776465

FieldName: TaskNumberTest, a number custom field with a lookup table.

Guid: Refers to the custom field GUID.

DefaultGuid: Refers to the default value in the associated lookup table of the TaskNumberTest custom field.

The GUID value of the b408011 element specifies the actual lookup table value.

b408013

188776467

FieldName: TaskCostNL, a cost custom field that has no lookup table.

The value of the b408013 element is 7000. The US English installation of Project Professional shows the value as $70.00.

b408015

188776469

FieldName: TaskDurationNL, a duration custom field that has no lookup table.

The DurationFormat="7" attribute specifies the duration format as days.

The value PT40H0M0S specifies 40 hours, 0 minutes, and 0 seconds. Because the work day is 8 hours, that is five days. (PT stands for Project Time, for internal use.)

Project Professional shows the value of the custom field as "5 days."

<Project xmlns="http://schemas.microsoft.com/project">
   . . .
   <ExtendedAttributes>
      <ExtendedAttribute>
         <FieldID>188776465</FieldID>
         <FieldName>TaskNumberTest</FieldName>
         <CFType>5</CFType>
         <Guid>DE6BF35E-9D93-40EC-A1A4-72506A9CFBDC</Guid>
         <ElemType>20</ElemType>
         <MaxMultiValues>1</MaxMultiValues>
         <UserDef>1</UserDef>
         <SecondaryPID>255885321</SecondaryPID>
         <AutoRollDown>1</AutoRollDown>
         <DefaultGuid>EBDF240A-AE0B-4224-A8B8-3FA4B7EA709F</DefaultGuid>
      </ExtendedAttribute>
      <ExtendedAttribute>
         <FieldID>188776467</FieldID>
         <FieldName>TaskCostNL</FieldName>
         <CFType>0</CFType>
         <Guid>8E00874F-EA6F-4FED-BBB7-332BCCA44B3E</Guid>
         <ElemType>20</ElemType>
         <MaxMultiValues>1</MaxMultiValues>
         <UserDef>1</UserDef>
         <SecondaryPID>255885323</SecondaryPID>
         <RollupType>3</RollupType>
         <CalculationType>1</CalculationType>
         <AutoRollDown>1</AutoRollDown>
      </ExtendedAttribute>
      <ExtendedAttribute>
         <FieldID>188776469</FieldID>
         <FieldName>TaskDurationNL</FieldName>
         <CFType>2</CFType>
         <Guid>BBC34DFF-D929-4CF3-8335-EFDA2DD38F11</Guid>
         <ElemType>20</ElemType>
         <MaxMultiValues>1</MaxMultiValues>
         <UserDef>1</UserDef>
         <SecondaryPID>255885325</SecondaryPID>
         <RollupType>3</RollupType>
         <CalculationType>1</CalculationType>
         <AutoRollDown>1</AutoRollDown>
      </ExtendedAttribute>
   </ExtendedAttributes>
   . . .
   <Tasks>
      <Task>
         . . .
         <b408011>D3561646-A7F0-4196-B211-E67E232A46EC</b408011>
         <b408013>7000</b408013>
         <b408015 DurationFormat="7">PT40H0M0S</b408015>
         . . .
      </Task>
   </Tasks>
   . . .
</Project>

See Also

Concepts

Task Elements and XML Structure

XML Schema for the Tasks Element

Custom Field Data in XML