Guid Element (Multiple Parents)

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.

The globally unique identifier (GUID) of an outline code or enterprise custom field.

<Guid>
    StringValue
<Guid>

Parent Elements

OutlineCode, ExtendedAttribute

Occurrences

Minimum: 0 for local custom fields; 1 for outline codes and enterprise custom fields.

Maximum: 1

Text Value

A text value of type string is required. The string must be in the form "HHHHHHHH-HHHH-HHHH-HHHH-HHHHHHHHHHHH" where H represents a hexadecimal digit between 0 and F.

Remarks

For the ExtendedAttribute element, Guid is the custom field GUID.

For the OutlineCode element, Guid is the outline code GUID. Local outline codes and enterprise custom fields and require the Guid element; local custom fields do not.

Example

In the following example, Text1 is a local task custom field, which does not include the Guid element. Health is an enterprise custom field, which uses the Guid element to represent the GUID of the enterprise custom field.

<ExtendedAttributes>
  <ExtendedAttribute>
    <FieldID>188743731</FieldID>
    <FieldName>Text1</FieldName>
    <Alias>Test Task CF</Alias>
    <Ltuid>ED2E65AD-00A1-4457-97FA-A3FC708C9183</Ltuid>
    <SecondaryPID>255869028</SecondaryPID>
  </ExtendedAttribute>
  <ExtendedAttribute>
    <FieldID>188776449</FieldID>
    <FieldName>Health</FieldName>
    <CFType>7</CFType>
    <Guid>0000E8D9-65F1-4769-9BD2-819D38036FCC</Guid>
    <ElemType>20</ElemType>
    <MaxMultiValues>1</MaxMultiValues>
    <UserDef>1</UserDef>
    <SecondaryPID>255885314</SecondaryPID>
    <DefaultGuid>000079D2-4A43-41FC-B264-98D23FADD84B</DefaultGuid>
  </ExtendedAttribute>
</ExtendedAttributes>

See Also

Concepts

OutlineCode Elements and XML Structure

XML Schema for the OutlineCodes Element

ExtendedAttribute Elements and XML Structure

XML Schema for the ExtendedAttributes Element