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.WorkFlowName</members>
        <name>Workflow</name>
    </types>  
    <types>
        <members>ObjectName.FieldUpdateName</members>
        <name>WorkflowFieldUpdate</name>
    </types>
    <types>
        <members>ObjectName.FieldUpdateName</members>
        <name>WorkflowAlert</name>
    </types>
    <types>
        <members>ObjectName.FieldUpdateName</members>
        <name>WorkflowOutboundMessage</name>
    </types>
    <types>
        <members>ObjectName.FieldUpdateName</members>
        <name>WorkflowRule</name>
    </types>
    <types>
        <members>ObjectName.FieldUpdateName</members>
        <name>WorkflowTask</name>
    </types>
    <version>28.0</version>
</Package>

3 comments:


  1. ObjectName.WorkFlowName
    Workflow


    should be


    ObjectName
    Workflow

    ReplyDelete
  2. correct






    ObjectName
    Workflow


    ObjectName.FieldUpdateName
    WorkflowFieldUpdate


    ObjectName.EmailAlertName
    WorkflowAlert


    ObjectName.OutboundMsgName
    WorkflowOutboundMessage


    ObjectName.RuleName
    WorkflowRule


    ObjectName.TaskName
    WorkflowTask

    28.0

    ReplyDelete