How to deploy Workflow email alerts, field udpdates, Outbound messages and Task using Apache ANT tool?

Sample Package.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <!-- 
Workflow includes WorkflowFieldUpdate,
WorkflowAlert, WorkflowOutboundMessage, WorkflowRule
    -->
    <types>
        <members>ObjectName</members>
        <name>Workflow</name>
    </types>  
    <types>
        <members>ObjectName.WorkflowRuleName</members>
        <name>WorkflowRule</name>
    </types>
    <types>
        <members>ObjectName.FieldUpdateName</members>
        <name>WorkflowFieldUpdate</name>
    </types>
    <types>
        <members>ObjectName.EmailAlertName</members>
        <name>WorkflowAlert</name>
    </types>
    <types>
        <members>ObjectName.OutboundMessageName</members>
        <name>WorkflowOutboundMessage</name>
    </types>
    <types>
        <members>ObjectName.TaskName</members>
        <name>WorkflowTask</name>
    </types>
    <version>28.0</version>
</Package>

2 comments:

  1. what should i give for workflow action in ant

    ReplyDelete
    Replies
    1. Check the below for workflow actions

      ObjectName.FieldUpdateName
      WorkflowFieldUpdate

      ObjectName.EmailAlertName
      WorkflowAlert

      ObjectName.OutboundMessageName
      WorkflowOutboundMessage

      ObjectName.TaskName
      WorkflowTask

      Delete