pacx column add memo - neronotte/Greg.Xrm.Command GitHub Wiki

Creates a memo column.

Usage

It's a different type of String column, that by default accepts more than one line of text

pacx column create --type Memo -t tableName -n columnName

The system will automatically generate a column of type Memo with the following features:

  • Display Name: columnName
  • Schema Name: publisherprefix_columnName (all lowercase without special chars or spaces)
  • Type: Memo
  • Format: Text
  • Max Length: 2000
  • Required: None
  • Audit Enabled: true

You can manually set all other arguments in the following way:

# Specify a different format (Email, Json, RichText, Text, TextArea)
pacx column create --type Memo -t tableName -n columnName --memoFormat RichText

# Specify a different max length (default is 2000)
pacx column create --type Memo -t tableName -n columnName --len 200

# Create a required field (supported values are: None, ApplicationRequired, Recommended)
pacx column create --type Memo -t tableName -n columnName -r ApplicationRequired

Arguments

Long Name Short Name Required? Description Default value Valid values
table t Y The name of the entity for which you want to create an attribute - String
name n Y The display name of the attribute. - String
schemaName sn N The schema name of the attribute. If not specified, is deducted from the display name - String
description d N The description of the attribute. - String
requiredLevel r N The required level of the attribute. - None, SystemRequired, ApplicationRequired, Recommended
memoFormat mf N The format of the memo attribute (default: Text). Text Email, Json, RichText, Text, TextArea
len l N The maximum length for string attribute. 2000 Int32
imeMode ime N Indicates the input method editor (IME) mode for the column. Disabled Auto, Inactive, Active, Disabled
audit a N Indicates whether the attribute is enabled for auditing (default: true). - true, false
solution s N The name of the unmanaged solution to which you want to add this attribute. - String