|
Parameter
|
Description
|
|---|---|
|
name
|
Name of the created option.
|
|
identifier
|
Identifier of the created option.
|
|
ordering position
|
Ordering position of the created option.
|
public static IMaxObject createOptionListField(String relatedObjectFullIdentifier, String name, String identifier, String namespaceIdentifier, String applicationName, Collection<Option> options, Map<String,Object> additionalFields = [:])
import com.servicemax.core.utils.Definitions
import com.servicemax.core.definitions.Option
def options = []
options << new Option('Option 1', 'option1', 1)
options << new Option('Option 2', 'option2', 2)
options << new Option('Option 3', 'option3', 3)
Definitions.createOptionListField('io_showcase', 'Test Option List Field', 'test_option_list_field', 'io', 'Max', options)
|
|
Field creation with the Status data type is not supported at this time.
|