WorkflowFieldUpdate defines a named automation action that writes a specified or computed value to a field. Its definitions live in the fieldUpdates collection of an object's Workflow metadata. The action identifies the destination field, the operation, and any value or expression needed for the update.
A field update does not define when it runs. Activation, criteria, and immediate or time-based execution belong to the consuming WorkflowRule. A field update's name in a rule is only a reference to the action, not its complete definition. ApprovalProcess and EntitlementProcess can also reference these actions.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Required developer identifier for API access. Within fieldUpdates, this identifies the action rather than the parent object. |
name |
Required user-facing component name, distinct from the developer identifier in fullName. |
field |
Required destination field. Interpret it together with targetObject for an update from a child record to its parent. |
operation |
Required value-setting operation. Allowed values are Formula, Literal, LookupValue, NextValue, Null, and PreviousValue. |
formula |
Computes the new field value when operation is Formula. The expression must be valid and can reference fields other than the destination field. |
literalValue |
Supplies the value when operation is Literal. It must be valid for the destination field; a picklist value's availability in the target org matters. |
lookupValue |
Required when operation is LookupValue. Supplies an object reference rather than an ordinary literal. |
lookupValueType |
Identifies the object type referenced by lookupValue. Listed values are Queue, RecordType, and User, but the operation documentation limits support to User. See Documentation Inconsistencies. |
notifyAssignee |
Required Boolean that controls whether the assignee is notified when the field is updated. |
protected |
Required Boolean controlling package-level reference visibility. When true, components created in the installing org cannot link to or reference the action. |
reevaluateOnChange |
When true, an actual change to the field's value causes all workflow rules on the associated object to be reevaluated. Further qualifying field updates can extend the cascade. |
targetObject |
Identifies the foreign-key field, meaning the relationship field on a child that points to its parent, for a cross-record update. It is not simply an object API name. |
Behavior and Constraints
Value-setting operations
operation determines which value-setting element is meaningful. Formula uses formula; Literal uses literalValue; and LookupValue requires lookupValue. The field update's formula computes the destination value. It is not the rule's criteria formula.
NextValue and PreviousValue are allowed only for picklist fields. Null sets the destination field to null. A Literal operation must supply a value valid for the destination field, so the existence of the field alone does not establish compatibility.
Workflow reevaluation
With reevaluateOnChange set to true, all workflow rules on the associated object are reevaluated only if the action actually changes the field's value. Rules whose criteria become satisfied are triggered. Executing the action while leaving the value unchanged does not meet this reevaluation condition.
If a triggered rule performs another field update that also enables reevaluation, the cascade can continue. This cycle of reevaluation and triggering can happen up to five times after the initial field update.
Cross-record destinations and shared actions
For an update triggered by a child-record change, targetObject identifies the child's relationship to its parent. For example, an EmailMessage change can target its Case parent through EmailMessage.ParentId. Read field in that relationship context rather than assuming the update writes to the triggering record.
Multiple rules or processes can reference the same action. Changing its destination field, operation, or value expression can therefore affect more than one consumer. The protected setting restricts references from components created in an installing org; it does not activate or deactivate the action. The optional description can record why the update was configured.
Deployment and Retrieval
The object-level Workflow container holds field updates alongside rules and other workflow action types. In Metadata API file format, workflow files use the .workflow suffix and reside in the workflows directory, with one file per standard or custom object that has workflow. The Workflow metadata reference describes this container.
To retrieve an object's workflow configuration, use the object's API name as a member of Workflow. To retrieve all workflow components, use * as the member of Workflow. That container-level wildcard is distinct from a wildcard request for the child type WorkflowFieldUpdate.
For selective retrieval, use explicit WorkflowFieldUpdate members in the form ObjectApiName.FieldUpdateName, such as Opportunity.My_Workflow_Field_Update. A community report recommends this form when wildcard retrieval omits the field update definitions.
Within the object's fieldUpdates collection, fullName is the action's developer identifier. It must be unique, begin with a letter, contain only alphanumeric characters and underscores, contain no spaces, not end with an underscore, and not contain consecutive underscores. The object prefix in a selective manifest member qualifies that identifier; it is not the action's display name.
A consuming rule references the action through WorkflowActionReference.name with type set to FieldUpdate. Those references can appear in immediate actions or in actions nested under workflowTimeTriggers. A rule-only selection does not itself contain the destination field, operation, or value expression. For a selective deployment, include the referenced action definition when it is not already available in the destination.
Deploying the object-level container can also deploy sibling rules and actions present in the payload. For a Literal picklist update, destination-value compatibility is a separate concern: the field can exist while the selected value is missing. Destructive-deployment warnings for already-absent components are another reported failure condition, described below.
Relationships
Dependencies can come from the destination field, fields embedded in the value formula, and the child-to-parent relationship. Consumers select the action by name; their criteria, activation, and timing remain separate from its definition.
References
-
CustomField:field, field references embedded informula, and the relationship field identified throughtargetObject. -
CustomObject:targetObject, through the cross-record relationship. -
Queue:lookupValue, subject to the lookup-support discrepancy below. -
RecordType:lookupValue, subject to the lookup-support discrepancy below.
Referenced By
-
ApprovalProcess:name. -
EntitlementProcess:name. -
Workflow:fieldUpdatescontains the definitions;nameidentifies action references within the container. -
WorkflowRule:namein action references for immediate actions or actions underworkflowTimeTriggers.
Documentation Inconsistencies
The lookupValueType definition lists Queue, RecordType, and User, while the LookupValue operation description states that only User is supported. Queue and RecordType are also recognized lookupValue associations. Neither those associations nor the enumeration alone establishes support for a particular lookup configuration; the documented mismatch leaves that compatibility unresolved.
Reported Issues
-
Wildcard retrieval can omit complete field update definitions. In a 2023 report, the retrieved workflow content contained field update names without the full definitions. The answer recommends explicit
WorkflowFieldUpdatemembers usingObjectApiName.FieldUpdateNamerather than relying on a child-type wildcard. Selective retrieval discussion. -
A missing destination picklist value can block validation or deployment. A 2020 report attributes the error
Invalid literal value for picklist:to aLiteralupdate whose selected value was absent from the target org. The reported remedy is to include the field definition containing the value or ensure that the value already exists in the destination. Picklist deployment discussion. -
A selective time-based rule deployment can omit its referenced action definitions. A 2021 answer explains that timing is nested within the rule and recommends listing the related field updates separately when deploying individual components. Deploying the object's
Workflowcontainer instead includes the related workflow configuration present in that payload. Time-based action packaging discussion. -
Warnings about already-absent components can cause a destructive deployment to fail. A discussion that included missing
WorkflowFieldUpdatecomponents received a 2015 answer recommendingignoreWarnings="true"on Ant'ssf:deploytask when the failure is caused by components indestructiveChanges.xmlnot being found. Destructive-deployment warning discussion.
Common Questions
How do I retrieve a single WorkflowFieldUpdate in package.xml?
Use WorkflowFieldUpdate as the metadata type and ObjectApiName.FieldUpdateName as the member. A 2023 community report recommends explicit members when wildcard retrieval omits definitions. Retrieving the parent Workflow container is a separate, broader selection.
Why does my field update deployment say "Invalid literal value for picklist:"?
A reported cause is that the value used by a Literal update does not exist in the target org. Include the field definition containing that value or ensure that the value is already available in the destination.
Does reevaluateOnChange run workflow rules if the field value stays the same?
No. The documented condition requires the field update to change the value. When it does, all workflow rules on the associated object are reevaluated, and qualifying further updates can continue the cascade up to five times after the initial update.
Where is the schedule for a workflow field update stored?
The schedule belongs to the consuming WorkflowRule, under workflowTimeTriggers. The field update defines what value to write, while the rule's nested action reference selects it for timed execution.
Is targetObject just the API name of the object to update?
No. For a child-to-parent update, targetObject identifies the foreign-key relationship on the child, such as EmailMessage.ParentId. Interpret the destination field together with that relationship.