|
|
If you modify the number of target objects for a relationship, changes to the data type of the related field can be generated (for example, from Relationship to Dynamic Relationship). This is the only supported data type change, and when it occurs, field options are recreated accordingly.
|
public static IMaxObject updateRelationshipField(String relatedObjectFullIdentifier, String fieldFullIdentifier, Relationship relationship, Map<String,Object> values)
import com.servicemax.core.utils.Definitions
import com.servicemax.core.definitions.Relationship
def relationship = Relationship.fromMap([targets: ['io_user']])
Definitions.updateRelationshipField('io_showcase', 'io_test_relationship_field', relationship,
[io_application: 'Max Designer', io_short_description: 'Field used by Showcase', io_update_safe: true])