|
|
You cannot remove fields that are shared among multiple objects.
|
public static void deleteFields(String relatedObjectFullIdentifier, Collection<String> fieldFullIdentifiersToDelete)
public static void deleteFieldsByUUID(String relatedObjectFullIdentifier, Collection<UUID> uuids)
import com.servicemax.core.utils.Definitions
Definitions.deleteFields('io_showcase', ['io_test_field', 'io_test_relationship_field', 'io_test_option_list_field'])
import com.servicemax.core.utils.Definitions
Definitions.deleteFieldsByUUID('io_field', [UUID.fromString('a7ff6d30-a650-45a9-ae97-d972905b11ea')])