Skip to content

Salesforce - Process Steps

Bulk Retrieve

Download a large number of components of a single metadata type into a set of local files.

NameTypeDescriptionRequired
API VersionStringThe API version to use for the metadata. The default is 34.0.No
Batch SizeStringThe number of items to retrieve while doing multi-part retrieve. Defaults to 10.No
Containing FolderStringIf the metadata is contained in a folder, this parameter should be the name of the folder from which the contents are retrieved.No
Jar PathStringPath to the Salesforce jar (ex. lib/ant-salesforce.jar)Yes
Max PollStringThe number of times to poll the server for the results of the retrieve request. The clients waits for two seconds after the first poll attempt. The wait time is doubled for each successive poll attempt up to maximum of 30 seconds between poll attempts.No
Metadata TypeStringThe type of metadata for which you are retrieving property information.Yes
PasswordPasswordSFDC Password. This may need to be appended with an authentication token if this agent resides outside of the trusted domain. See SalesForce documentation for further detail. (default: {p:resource/salesForce.password}``)Yes
Proxy HostStringThe HTTP/FTP proxy host. Only set proxy properties if there is a proxy being used.No
Proxy PasswordPasswordThe password for the proxy. Used only is Proxy User is set.No
Proxy PortStringThe HTTP/FTP proxy port number. If nothing is entered, 80 will be used.No
Proxy UsernameStringThe proxy user.No
Retrieve TargetStringThe root of the directory structure into which the metadata files are retrieved. (i.e. codepkg)Yes
SalesForce Server URLStringSFDC Server URL (i.e. https://na17.salesforce.com)Yes
Socks Proxy HostStringThe name of a Socks server.No
Socks Proxy PortStringThe port for socks connections. If left empty, 1080 is used.No
UnzipStringIf set to true, the retrieved components are unzipped. If set to false, the retrieved components are saved as a zip file in the retrieveTarget directory.No
UserStringSFDC User NameYes

Deploy

Deploy components, code, or recent validations into your org.

NameTypeDescriptionRequired
Check OnlyBooleanCheck this box to perform a test deployment (validation) of components without saving the components in the target org. After the validation finishes with passing tests, it might qualify for deployment without rerunning tests (Deploy Recent Validation step).No
Deploy RootStringThe directory relative to the current working directory which contains the files to operate on.Yes
Jar PathStringPath to the Salesforce jar (ex. lib/ant-salesforce.jar)Yes
PasswordPasswordSFDC Password. This may need to be appended with an authentication token if this agen t resides outside of the trusted domain. See SalesForce documentation for further detail. (default: {p:resource/salesForce.password}``)No
Proxy HostStringThe HTTP/FTP proxy host. Only set proxy properties if there is a proxy being used.No
Proxy PasswordPasswordThe password for the proxy. Used only is Proxy User is set.No
Proxy PortStringThe HTTP/FTP proxy port number. If nothing is entered, 80 will be used.No
Proxy UsernameStringThe proxy user.No
Roll Back on ErrorBooleanDetermines whether or not to roll back on errorNo
SalesForce Server URLStringSFDC Server URL (i.e. https://na17.salesforce.com)Yes
Socks Proxy HostStringThe name of a Socks server.No
Socks Proxy PortStringThe port for socks connections. If left empty, 1080 is used.No
Test LevelStringSpecifies which tests are run as part of a deployment. The test level is enforced regardless of the types of components that are present in the deployment package.No
Test NamesStringIgnored if Test Level not set to RunSpecifiedTests.A list of Apex classes containing tests run after deployment. Separate each test with a new line.No
UserStringSFDC User NameNo

Describe Metadata

Describe and list all metadata types and their existing objects.

NameTypeDescriptionRequired
API VersionStringThe API version to use for the metadata. The default is 34.0.Yes
Jar PathStringPath to the Salesforce jar (ex. lib/ant-salesforce.jar)Yes
PasswordPasswordSFDC Password. This may need to be appended with an authentication token if this agent resides outside of the trusted domain. See SalesForce documentation for further detail. (default: {p:resource/salesForce.password}``)No
Proxy HostStringThe HTTP/FTP proxy host. Only set proxy properties if there is a proxy being used.No
Proxy PasswordPasswordThe password for the proxy. Used only is Proxy User is set.No
Proxy PortStringThe HTTP/FTP proxy port number. If nothing is entered, 80 will be used.No
Proxy UsernameStringThe proxy user.No
SalesForce Server URLStringSFDC Server URL (i.e. https://na17.salesforce.com)Yes
Socks Proxy HostStringThe name of a Socks server.No
Socks Proxy PortStringThe port for socks connections. If left empty, 1080 is used.No
UserStringSFDC User NameNo

Deploy Recent Validation

Deploy recently validated components.

NameTypeDescriptionRequired
Jar PathStringPath to the Salesforce jar (ex. lib/ant-salesforce.jar)Yes
Max PollStringThe number of times to poll the server for the results of the retrieve request. The clients waits for two seconds after the first poll attempt. The wait time is doubled for each successive poll attempt up to maximum of 30 seconds between poll attempts.No
PasswordPasswordSFDC Password. This may need to be appended with an authentication token if this agent resides outside of the trusted domain. See SalesForce documentation for further detail. (default: {p:resource/salesForce.password}``)Yes
Proxy HostStringThe HTTP/FTP proxy host. Only set proxy properties if there is a proxy being used.No
Proxy PasswordPasswordThe password for the proxy. Used only is Proxy User is set.No
Proxy PortStringThe HTTP/FTP proxy port number. If nothing is entered, 80 will be used.No
Proxy UsernameStringThe proxy user.No
Recent Validation IDStringSpecifies the ID of a recent validation.Can be found as an output property of the Deploy step.Yes
Roll Back on ErrorStringDefault value is true.Indicates whether any failure causes a complete roll back (true) or not (false).No
SalesForce Server URLStringSFDC Server URL (i.e. https://na17.salesforce.com)Yes
Socks Proxy HostStringThe name of a Socks server.No
Socks Proxy PortStringThe port for socks connections. If left empty, 1080 is used.No
UserStringSFDC User NameYes

List Metadata

List information on a given metadata type.

NameTypeDescriptionRequired
API VersionStringThe API version to use for the metadata. The default is 34.0.No
FolderStringThe folder associated with the component. This field is required for components that use folders, such as Dashboard, Document, EmailTemplate, or Report.No
Jar PathStringPath to the Salesforce jar (ex. lib/ant-salesforce.jar)Yes
Metadata TypeStringThe name of the metadata type for which you are retrieving property information; for example, CustomObject for custom objects, or Report for custom reports. Type names are case-sensitiveYes
PasswordPasswordSFDC Password. This may need to be appended with an authentication token if this agent resides outside of the trusted domain. See SalesForce documentation for further detail. (default: {p:resource/salesForce.password}``)No
Proxy HostStringThe HTTP/FTP proxy host. Only set proxy properties if there is a proxy being used.No
Proxy PasswordPasswordThe password for the proxy. Used only is Proxy User is set.No
Proxy PortStringThe HTTP/FTP proxy port number. If nothing is entered, 80 will be used.No
Proxy UsernameStringThe proxy user.No
Result File PathStringThe path of the output file where results are stored. The default output is the console. Directing the output to a file makes it easier to extract the relevant information for your package.xml manifest file.No
SalesForce Server URLStringSFDC Server URL (i.e. https://na17.salesforce.com)Yes
Socks Proxy HostStringThe name of a Socks server.No
Socks Proxy PortStringThe port for socks connections. If left empty, 1080 is used.No
TraceStringThe path of the output file where results are stored. The default output is the console. Directing the output to a file makes it easier to extract the relevant information for your package.xml manifest file.No
UserStringSFDC User NameNo

Retrieve

Retrieve unpackaged, managed or unmanaged packages.

NameTypeDescriptionRequired
Jar PathStringPath to the Salesforce jar (ex. lib/ant-salesforce.jar)Yes
Package NamesStringRequired if unpackaged is not specified. A comma-separated list of the names of the packages to retrieve. You must specify either Package Names or Unpackaged, but not both.No
PasswordPasswordSFDC Password. This may need to be appended with an authentication token if this agent resides outside of the trusted domain. See SalesForce documentation for further detail. (default: {p:resource/salesForce.password}``)No
Proxy HostStringThe HTTP/FTP proxy host. Only set proxy properties if there is a proxy being used.No
Proxy PasswordPasswordThe password for the proxy. Used only is Proxy User is set.No
Proxy PortStringThe HTTP/FTP proxy port number. If nothing is entered, 80 will be used.No
Proxy UsernameStringThe proxy user.No
Retrieve TargetStringRequired. The root of the directory structure into which the metadata files are retrieved. (i.e. codepkg)Yes
Retrieve TypeEnumeration:The type of component to retrieve.Yes
- retrievePkg
- retrieveOutput
- retrieveUnpackaged
SalesForce Server URLStringSFDC Server URL (i.e. https://na17.salesforce.com)Yes
Socks Proxy HostStringThe name of a Socks server.No
Socks Proxy PortStringThe port for socks connections. If left empty, 1080 is used.No
UnpackagedStringRequired if Unpackaged is specified. The path and name of a file manifest that specifies the components to retrieve. You must specify either Unpackaged or Package Names, but not both. (i.e. codepkg/package.xml)No
UserStringSFDC User NameNo