USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Add a custom specification field to a table if it does not already exist
Creates a new specification (custom) field, skipping creation if a field with that name already exists. You can optionally copy the category structure from another existing field by name or ID, and force a specific SpecificationID rather than auto-generating one.
| Parameter | Description |
|---|---|
| cmd | Name of the specification field to add |
| Argument 0 | Table name the field belongs to (defaults to the Asset table if blank) |
| Argument 1 | SpecificationTypeID for the new field (controls the field data type) |
| Argument 2 | SpecificationID or SpecificationXMLName of an existing field whose categories should be copied to this new field |
| Argument 3 | Force a specific SpecificationID for the new field instead of generating a new one |
AddCustomField "Name of the specification field to add", "Table name the field belongs to (defaults to the Asset table if blank)", "SpecificationTypeID for the new field (controls the field data type)", "SpecificationID or SpecificationXMLName of an existing field whose categories should be copied to this new field", "Force a specific SpecificationID for the new field instead of generating a new one"