---
schema_version: "1"
id: 2e249b6ecc25874fc9e59f40980875c7ab23fc002d9ba35cf9a61be09d1a56a9
title: MLField
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_mlfield.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_mlfield.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d723dc195e1dd4b264ff80df101746ef2ab444f8504186d073f271039754ce62
description: Represents a field in a modeling data definition. A modeling data definition specifies the data used to create a model for a machine learning (ML) application. Available from API version 50.0 or later.
---
# MLField

Represents a field in a modeling data definition. A modeling data definition specifies the data used to create a model for a machine learning (ML) application. Available from API version 50.0 or later.

## Supported SOAP API Calls

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

## Supported REST API Methods

DELETE, GET, HEAD, PATCH, POST, Query

## Fields

| Field | Details |
| --- | --- |
| Entity | 
Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Nillable, Sort, Update

Description

The object that contains the MLField. Valid values include all Salesforce objects except the Internal, Interface, Virtual, and InDevelopment custom objects.



 |
| Field | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Nillable, Sort, Update

Description

The name of the MLField. Valid values include all Salesforce objects except the Internal, Interface, Virtual, and InDevelopment custom objects.



 |
| ParentDefinitionId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the MLrecommendationDefinition or MLPredictionDefinition that this MLField belongs to.

This is a polymorphic relationship field.

Relationship Name

ParentDefinition

Relationship Type

Lookup

Refers To

MLDataDefinition, MLRecommendationDefinition



 |
| RelatedFieldId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Reserved for future use.

This is a relationship field.

Relationship Name

RelatedField

Relationship Type

Lookup

Refers To

MLField



 |
| RelationType | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Reserved for future use.



 |
| Type | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Nillable, Sort, Update

Description

Indicates how the field is used in a prediction. Valid values are:

- Excluded
- Expression
- Included
- Join
- NegativeExpression
- PositiveExpression
- Prediction
- Pushback
- Related
- ScoringExpression
- SegmentExpression
- SourceDate
- TrainingExpression





 |