The approval process references the workflow action FieldUpdate OwnershipField_Update, which doesn't exist for the Account object

While trying to deploy an approval process I get the following error:

The approval process references the workflow action FieldUpdate OwnershipField_Update, which doesn't exist for the Account object

enter image description here

Answers 1

  • Field Updates are part of the Metadata Workflow type and must be included when deploying an Approval Process that uses Field Updates

    You can see this in the ApprovalProcess XML wherein the actions are an array of WorkflowActionReference per the doc

    ApprovalAction

    Represents the actions that occur as a result of an approval process.

    Field Name  Field Type                  Description
    action      WorkflowActionReference[]   An array of workflow actions to execute.
    

    XML example

    ...
    <initialSubmissionActions>
        <action>
            <name>OwnershipField_Update</name>
            <type>FieldUpdate</type>
        </action>
        
    </initialSubmissionActions>
    ...
    

    Side note: If using a vendor DevOps product, such product can tell you that you are missing metadata before you deploy, thus saving time


Related Questions