function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
James BillingsJames Billings 

How to deploy FieldUpdate on ApprovalProcess?

I'm trying to see if I can deploy some ApprovalProcess instances (using the ant tool for now). I've retrieved the processes themselves by adding the relevant bit to package.xml. But I'm not sure where the FieldUpdate action lives. The Approval Process file contains the name of it:
 
<approvalStep>
        <allowDelegate>false</allowDelegate>
        <approvalActions>
            <action>
                <name>UpdateApprovalStatus</name>
                <type>FieldUpdate</type>
            </action>
        </approvalActions>
......

But the actual object/field isn't listed anywhere. Can I retrieve/deploy that as well? If so? where does it live and what do I need to add to package.xml to pick it up?
Prashant Pandey07Prashant Pandey07
Hi James,

You can find the field update under initialSubmissionActions. Just check the below metadat that may help you.

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_approvalprocess.htm


--
Thanks,
Prashant