0

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

4
  • did you include Workflows in your deployment package?
    – cropredy
    Jul 1, 2021 at 15:13
  • i have not created any workflows for this approval process
    – user97613
    Jul 1, 2021 at 15:16
  • but field updates are part of the Workflow metadata type
    – cropredy
    Jul 1, 2021 at 15:20
  • yes ,I missed it while deploying thk u it worked
    – user97613
    Jul 1, 2021 at 15:46

1 Answer 1

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .