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
Raghav TRaghav T 

How to retrieve and deploy workflow Rules metadata from workbench?

 And how to get workflow API name.
Best Answer chosen by Raghav T
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Raghav,

To find the API name of the workflow. You can log in to workbench and navigate to Info-> Metadata types and Components and select workflow Rule as shown below. You will find all the workflow rules in it.
User-added image
You can use the below Package.xml to retrive and deploy the workflow rule based on your requirement. In my scenerio i am using the field update in workflow so I have taken Workflowfieldupdate.
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members> Account.sample_update</members>
        <name>WorkflowFieldUpdate</name>
    </types>
    <types>
        <members>Account.sample flow</members>
        <name>WorkflowRule</name>
    </types>
    <version>50.0</version>
</Package>

If this solution helps, Please mark it as best answer.

Thanks,​​​​​​​

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Raghav,

To find the API name of the workflow. You can log in to workbench and navigate to Info-> Metadata types and Components and select workflow Rule as shown below. You will find all the workflow rules in it.
User-added image
You can use the below Package.xml to retrive and deploy the workflow rule based on your requirement. In my scenerio i am using the field update in workflow so I have taken Workflowfieldupdate.
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members> Account.sample_update</members>
        <name>WorkflowFieldUpdate</name>
    </types>
    <types>
        <members>Account.sample flow</members>
        <name>WorkflowRule</name>
    </types>
    <version>50.0</version>
</Package>

If this solution helps, Please mark it as best answer.

Thanks,​​​​​​​
This was selected as the best answer
rose wellrose well
Check This (https://vatcalculatorlive.co.uk/):
<types> <members>*</members> <name>Workflow</name> </types>
Work process records have the postfix .work process. There is one record for every norm or custom item that has work process. These records are put away in the work processes registry of the comparing bundle.