> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSUserDefinedFieldInfo

> Can be used to mirror the layout of the user-defined fields in the user interface.

Can be used to mirror the layout of the user-defined fields in the user interface.

## Constructors

### NSUserDefinedFieldInfo()

```crmscript theme={null}
NSUserDefinedFieldInfo
```

Initializes a new instance of the NSUserDefinedFieldInfo class.

## Methods

## GetColumnId()

```crmscript theme={null}
Integer GetColumnId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The ID of the database column this field corresponds to.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer columnId = thing.GetColumnId();
```

## GetFieldDefault()

```crmscript theme={null}
String GetFieldDefault()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Optional default value for String fields.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String fieldDefault = thing.GetFieldDefault();
```

## GetFieldHeight()

```crmscript theme={null}
Integer GetFieldHeight()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - field height in pixels, 0 = 'enough' (from font).

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer fieldHeight = thing.GetFieldHeight();
```

## GetFieldLabel()

```crmscript theme={null}
String GetFieldLabel()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The label (lead text).

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String fieldLabel = thing.GetFieldLabel();
```

## GetFieldLeft()

```crmscript theme={null}
Integer GetFieldLeft()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - X pixel coordinate of field.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer fieldLeft = thing.GetFieldLeft();
```

## GetFieldTop()

```crmscript theme={null}
Integer GetFieldTop()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Y pixel coordinate of field.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer fieldTop = thing.GetFieldTop();
```

## GetFieldType()

```crmscript theme={null}
Integer GetFieldType()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - See \<xref href="CRMScript.NetServer.UDefFieldType" data-throw-if-not-resolved="false">\</xref>

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer fieldType = thing.GetFieldType();
```

## GetFieldWidth()

```crmscript theme={null}
Integer GetFieldWidth()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - field width in pixels, 0 = 'enough' (from font).

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer fieldWidth = thing.GetFieldWidth();
```

## GetFormatMask()

```crmscript theme={null}
String GetFormatMask()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Formatting mask, can be whatever the controls understand (currently nothing).

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String formatMask = thing.GetFormatMask();
```

## GetHasBeenPublished()

```crmscript theme={null}
Bool GetHasBeenPublished()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Has the udef field been published?

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Bool hasBeenPublished = thing.GetHasBeenPublished();
```

## GetHideLabel()

```crmscript theme={null}
Bool GetHideLabel()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Hide the label if 1

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Bool hideLabel = thing.GetHideLabel();
```

## GetIsIndexed()

```crmscript theme={null}
Bool GetIsIndexed()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Is this field indexed? true if yes; false if no.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Bool isIndexed = thing.GetIsIndexed();
```

## GetIsMandatory()

```crmscript theme={null}
Bool GetIsMandatory()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - 0 = no, 1 = yes (field must be filled out).

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Bool isMandatory = thing.GetIsMandatory();
```

## GetIsReadOnly()

```crmscript theme={null}
Bool GetIsReadOnly()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - 0 = read/write, 1 = readonly (don't combine with mandatory).

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Bool isReadOnly = thing.GetIsReadOnly();
```

## GetJustification()

```crmscript theme={null}
Integer GetJustification()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Justification. See \<xref href="CRMScript.NetServer.UdefJustification" data-throw-if-not-resolved="false">\</xref>

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer justification = thing.GetJustification();
```

## GetLabelHeight()

```crmscript theme={null}
Integer GetLabelHeight()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - label height in pixels, 0 = 'enough' (from font).

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer labelHeight = thing.GetLabelHeight();
```

## GetLabelLeft()

```crmscript theme={null}
Integer GetLabelLeft()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - X pixel coordinate of label.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer labelLeft = thing.GetLabelLeft();
```

## GetLabelTop()

```crmscript theme={null}
Integer GetLabelTop()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Y pixel coordinate of label.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer labelTop = thing.GetLabelTop();
```

## GetLabelWidth()

```crmscript theme={null}
Integer GetLabelWidth()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - label width in pixels, 0 = 'enough' (from font).

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer labelWidth = thing.GetLabelWidth();
```

## GetLastVersionId()

```crmscript theme={null}
Integer GetLastVersionId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - UDefFieldId this field had in the previous version, 0 = field is new in this version.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer lastVersionId = thing.GetLastVersionId();
```

## GetListTableId()

```crmscript theme={null}
Integer GetListTableId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The table ID of the source table for lists kTableAssoc, kTableContInt or whatever.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer listTableId = thing.GetListTableId();
```

## GetMdoListName()

```crmscript theme={null}
String GetMdoListName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - MDO list name used to populate this list. Derived from UDListDefinitionId and ListTableId. (Read-only).

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String mdoListName = thing.GetMdoListName();
```

## GetOwnerTableId()

```crmscript theme={null}
Integer GetOwnerTableId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - ID of owning table (contact, person, project).

## GetPage1LineNo()

```crmscript theme={null}
Integer GetPage1LineNo()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Line no on View Page 1, used if MDO flags are OFF. 0 = this field is not visible on page 1

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer page1LineNo = thing.GetPage1LineNo();
```

## GetProgId()

```crmscript theme={null}
String GetProgId()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Programmatic ID, for use by software that needs to find a particular field. Carried over like udefIdentity across generations.

<Note>
  Use a Company.Product.Field format to avoid naming conflicts; the Company name SuperOffice is reserved.
</Note>

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String progId = thing.GetProgId();
```

## GetShortLabel()

```crmscript theme={null}
String GetShortLabel()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Short name to be used in Archive headings and on page 1. If blank, the fieldLabel will be used everywhere.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String shortLabel = thing.GetShortLabel();
```

## GetTabOrder()

```crmscript theme={null}
Integer GetTabOrder()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Tab order value, sets the field processing sequence.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer tabOrder = thing.GetTabOrder();
```

## GetTemplateVariableName()

```crmscript theme={null}
String GetTemplateVariableName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Template variable name.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String templateVariableName = thing.GetTemplateVariableName();
```

## GetTextLength()

```crmscript theme={null}
Integer GetTextLength()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Length (in characters) of a text field, 0 for other types.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer textLength = thing.GetTextLength();
```

## GetTooltip()

```crmscript theme={null}
String GetTooltip()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Optional tooltip text for this field.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String tooltip = thing.GetTooltip();
```

## GetType()

```crmscript theme={null}
Integer GetType()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - ID of owning table (contact, person, project). See \<xref href="CRMScript.NetServer.UDefType" data-throw-if-not-resolved="false">\</xref>.

<Note>
  This is not the actual tableNumber, rather it's an enum.
</Note>

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer type = thing.GetType();
```

## GetUDefFieldId()

```crmscript theme={null}
Integer GetUDefFieldId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer uDefFieldId = thing.GetUDefFieldId();
```

## GetUdefIdentity()

```crmscript theme={null}
Integer GetUdefIdentity()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Unique number used to track field identity across layout changes.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer udefIdentity = thing.GetUdefIdentity();
```

## GetUDListDefinitionId()

```crmscript theme={null}
Integer GetUDListDefinitionId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - List to use for populating dropdown or listbox.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer uDListDefinitionId = thing.GetUDListDefinitionId();
```

## GetVersion()

```crmscript theme={null}
Integer GetVersion()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Definition version number; ALL fields get new version whenever layout is updated.

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer version = thing.GetVersion();
```

## SetColumnId(Integer)

```crmscript theme={null}
Void SetColumnId(Integer columnId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer columnId;
thing.SetColumnId(columnId);
```

## SetFieldDefault(String)

```crmscript theme={null}
Void SetFieldDefault(String fieldDefault)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String fieldDefault;
thing.SetFieldDefault(fieldDefault);
```

## SetFieldHeight(Integer)

```crmscript theme={null}
Void SetFieldHeight(Integer fieldHeight)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer fieldHeight;
thing.SetFieldHeight(fieldHeight);
```

## SetFieldLabel(String)

```crmscript theme={null}
Void SetFieldLabel(String fieldLabel)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String fieldLabel;
thing.SetFieldLabel(fieldLabel);
```

## SetFieldLeft(Integer)

```crmscript theme={null}
Void SetFieldLeft(Integer fieldLeft)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer fieldLeft;
thing.SetFieldLeft(fieldLeft);
```

## SetFieldTop(Integer)

```crmscript theme={null}
Void SetFieldTop(Integer fieldTop)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer fieldTop;
thing.SetFieldTop(fieldTop);
```

## SetFieldType(Integer)

```crmscript theme={null}
Void SetFieldType(Integer fieldType)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer fieldType;
thing.SetFieldType(fieldType);
```

## SetFieldWidth(Integer)

```crmscript theme={null}
Void SetFieldWidth(Integer fieldWidth)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer fieldWidth;
thing.SetFieldWidth(fieldWidth);
```

## SetFormatMask(String)

```crmscript theme={null}
Void SetFormatMask(String formatMask)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String formatMask;
thing.SetFormatMask(formatMask);
```

## SetHasBeenPublished(Bool)

```crmscript theme={null}
Void SetHasBeenPublished(Bool hasBeenPublished)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Bool hasBeenPublished;
thing.SetHasBeenPublished(hasBeenPublished);
```

## SetHideLabel(Bool)

```crmscript theme={null}
Void SetHideLabel(Bool hideLabel)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Bool hideLabel;
thing.SetHideLabel(hideLabel);
```

## SetIsIndexed(Bool)

```crmscript theme={null}
Void SetIsIndexed(Bool isIndexed)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Bool isIndexed;
thing.SetIsIndexed(isIndexed);
```

## SetIsMandatory(Bool)

```crmscript theme={null}
Void SetIsMandatory(Bool isMandatory)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Bool isMandatory;
thing.SetIsMandatory(isMandatory);
```

## SetIsReadOnly(Bool)

```crmscript theme={null}
Void SetIsReadOnly(Bool isReadOnly)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Bool isReadOnly;
thing.SetIsReadOnly(isReadOnly);
```

## SetJustification(Integer)

```crmscript theme={null}
Void SetJustification(Integer justification)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer justification;
thing.SetJustification(justification);
```

## SetLabelHeight(Integer)

```crmscript theme={null}
Void SetLabelHeight(Integer labelHeight)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer labelHeight;
thing.SetLabelHeight(labelHeight);
```

## SetLabelLeft(Integer)

```crmscript theme={null}
Void SetLabelLeft(Integer labelLeft)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer labelLeft;
thing.SetLabelLeft(labelLeft);
```

## SetLabelTop(Integer)

```crmscript theme={null}
Void SetLabelTop(Integer labelTop)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer labelTop;
thing.SetLabelTop(labelTop);
```

## SetLabelWidth(Integer)

```crmscript theme={null}
Void SetLabelWidth(Integer labelWidth)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer labelWidth;
thing.SetLabelWidth(labelWidth);
```

## SetLastVersionId(Integer)

```crmscript theme={null}
Void SetLastVersionId(Integer lastVersionId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer lastVersionId;
thing.SetLastVersionId(lastVersionId);
```

## SetListTableId(Integer)

```crmscript theme={null}
Void SetListTableId(Integer listTableId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer listTableId;
thing.SetListTableId(listTableId);
```

## SetMdoListName(String)

```crmscript theme={null}
Void SetMdoListName(String mdoListName)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String mdoListName;
thing.SetMdoListName(mdoListName);
```

## SetOwnerTableId(Integer)

```crmscript theme={null}
Void SetOwnerTableId(Integer id)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## SetPage1LineNo(Integer)

```crmscript theme={null}
Void SetPage1LineNo(Integer page1LineNo)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer page1LineNo;
thing.SetPage1LineNo(page1LineNo);
```

## SetProgId(String)

```crmscript theme={null}
Void SetProgId(String progId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

<Note>
  Use a Company.Product.Field format to avoid naming conflicts; the Company name SuperOffice is reserved.
</Note>

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String progId;
thing.SetProgId(progId);
```

## SetShortLabel(String)

```crmscript theme={null}
Void SetShortLabel(String shortLabel)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String shortLabel;
thing.SetShortLabel(shortLabel);
```

## SetTabOrder(Integer)

```crmscript theme={null}
Void SetTabOrder(Integer tabOrder)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer tabOrder;
thing.SetTabOrder(tabOrder);
```

## SetTemplateVariableName(String)

```crmscript theme={null}
Void SetTemplateVariableName(String templateVariableName)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String templateVariableName;
thing.SetTemplateVariableName(templateVariableName);
```

## SetTextLength(Integer)

```crmscript theme={null}
Void SetTextLength(Integer textLength)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer textLength;
thing.SetTextLength(textLength);
```

## SetTooltip(String)

```crmscript theme={null}
Void SetTooltip(String tooltip)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
String tooltip;
thing.SetTooltip(tooltip);
```

## SetType(Integer)

```crmscript theme={null}
Void SetType(Integer type)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

<Note>
  This is not the actual tableNumber, rather it's an enum.
</Note>

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer type;
thing.SetType(type);
```

## SetUDefFieldId(Integer)

```crmscript theme={null}
Void SetUDefFieldId(Integer uDefFieldId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer uDefFieldId;
thing.SetUDefFieldId(uDefFieldId);
```

## SetUdefIdentity(Integer)

```crmscript theme={null}
Void SetUdefIdentity(Integer udefIdentity)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer udefIdentity;
thing.SetUdefIdentity(udefIdentity);
```

## SetUDListDefinitionId(Integer)

```crmscript theme={null}
Void SetUDListDefinitionId(Integer uDListDefinitionId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer uDListDefinitionId;
thing.SetUDListDefinitionId(uDListDefinitionId);
```

## SetVersion(Integer)

```crmscript theme={null}
Void SetVersion(Integer version)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSUserDefinedFieldInfo thing;
Integer version;
thing.SetVersion(version);
```


## Related topics

- [NSUserDefinedFieldInfoAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSUserDefinedFieldInfoAgent.md)
- [How to create a user-defined field using the web services API](/en/api/web-services/howto/custom-objects/rest-create-udef-field.md)
- [Delete User Defined Field Info](/en/api/reference/restful/agent/userdefinedfieldinfo_agent/delete-user-defined-field-info.md)
- [Save User Defined Field Info](/en/api/reference/restful/agent/userdefinedfieldinfo_agent/save-user-defined-field-info.md)
- [Save User Defined Field Infos](/en/api/reference/restful/agent/userdefinedfieldinfo_agent/save-user-defined-field-infos.md)
