Skip to content

Instantly share code, notes, and snippets.

@ralphcallaway
Created January 4, 2016 22:53
Show Gist options
  • Save ralphcallaway/8030d33a5aedec52603a to your computer and use it in GitHub Desktop.
Save ralphcallaway/8030d33a5aedec52603a to your computer and use it in GitHub Desktop.
submitted on behalf of sr
Step 2 - Deploy
[21:13:25] ~/CCC_AntScripts> ant deploy -Ddir=/Users/rwc/CCC_AntScripts/SC -Dprop=/Users/rwc/CCC_AntScripts/buildRWCskuid.properties
Buildfile: /Users/rwc/CCC_AntScripts/build.xml
deploy:
[input] Deploying to rwcSkuid@gmail.com Are you sure? (y, n)
y
[echo] Deploying /Users/rwc/CCC_AntScripts/SC from rwcSkuid@gmail.com
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request ID for the current deploy task: 0Af6100000UHFfYCAX
[sf:deploy] Waiting for server to finish processing the request...
[sf:deploy] Request Status: InProgress (0/6) -- Processing Type: CustomObject
[sf:deploy] Request Status: Succeeded
[sf:deploy] *********** DEPLOYMENT SUCCEEDED ***********
[sf:deploy] Finished request 0Af6100000UHFfYCAX successfully.
BUILD SUCCESSFUL
Total time: 15 seconds
Step 4 - Retrieve Post object
[21:37:48] ~/CCC_AntScripts> ant retrieve -Ddir=/Users/rwc/CCC_AntScripts/SC -Dprop=/Users/rwc/CCC_AntScripts/buildRWCskuid.properties
Buildfile: /Users/rwc/CCC_AntScripts/build.xml
retrieve:
[echo] Retriving /Users/rwc/CCC_AntScripts/SC from rwcSkuid@gmail.com
[sf:retrieve] Request for a retrieve submitted successfully.
[sf:retrieve] Request ID for the current retrieve task: 09S61000003wS2hEAE
[sf:retrieve] Waiting for server to finish processing the request...
[sf:retrieve] Request Status: Pending
[sf:retrieve] Request Status: Succeeded
[sf:retrieve] Finished request 09S61000003wS2hEAE successfully.
BUILD SUCCESSFUL
Total time: 7 seconds
Step 4 package.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>Contact</members>
<members>Post__c</members>
<name>CustomObject</name>
</types>
<version>35.0</version>
</Package>
Step 4 Post__c.object
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<actionOverrides>
<actionName>Accept</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>CancelEdit</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>Clone</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>Delete</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>Edit</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>Follow</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>List</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>New</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>SaveEdit</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>Tab</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>View</actionName>
<type>Default</type>
</actionOverrides>
<allowInChatterGroups>false</allowInChatterGroups>
<compactLayoutAssignment>SYSTEM</compactLayoutAssignment>
<deploymentStatus>Deployed</deploymentStatus>
<description>A post from a fake API</description>
<enableActivities>false</enableActivities>
<enableBulkApi>true</enableBulkApi>
<enableFeeds>false</enableFeeds>
<enableHistory>false</enableHistory>
<enableReports>false</enableReports>
<enableSearch>false</enableSearch>
<enableSharing>true</enableSharing>
<enableStreamingApi>true</enableStreamingApi>
<fields>
<fullName>Author__c</fullName>
<deleteConstraint>SetNull</deleteConstraint>
<description>The author of the post</description>
<externalId>false</externalId>
<inlineHelpText>The author of the post</inlineHelpText>
<label>Author</label>
<referenceTo>Contact</referenceTo>
<relationshipLabel>Posts</relationshipLabel>
<relationshipName>Posts</relationshipName>
<required>false</required>
<trackTrending>false</trackTrending>
<type>Lookup</type>
</fields>
<fields>
<fullName>Body__c</fullName>
<description>The body of the post</description>
<externalId>false</externalId>
<label>Body</label>
<length>32768</length>
<trackTrending>false</trackTrending>
<type>LongTextArea</type>
<visibleLines>3</visibleLines>
</fields>
<fields>
<fullName>My_New_Field__c</fullName>
<description>declaritvely created text field</description>
<externalId>false</externalId>
<label>My New Field</label>
<length>25</length>
<required>false</required>
<trackTrending>false</trackTrending>
<type>Text</type>
<unique>false</unique>
</fields>
<fields>
<fullName>Title__c</fullName>
<description>The title of the post</description>
<externalId>false</externalId>
<label>Title</label>
<length>255</length>
<required>false</required>
<trackTrending>false</trackTrending>
<type>Text</type>
<unique>false</unique>
</fields>
<label>Post</label>
<nameField>
<label>Post Id</label>
<type>Text</type>
</nameField>
<pluralLabel>Posts</pluralLabel>
<searchLayouts/>
<sharingModel>ReadWrite</sharingModel>
</CustomObject>
Step 5 - destructive changes
[22:04:22] ~/CCC_AntScripts> ant deploy -Ddir=/Users/rwc/CCC_AntScripts/SC -Dprop=/Users/rwc/CCC_AntScripts/buildRWCskuid.properties
Buildfile: /Users/rwc/CCC_AntScripts/build.xml
deploy:
[input] Deploying to rwcSkuid@gmail.com Are you sure? (y, n)
y
[echo] Deploying /Users/rwc/CCC_AntScripts/SC from rwcSkuid@gmail.com
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request ID for the current deploy task: 0Af6100000UHGnYCAX
[sf:deploy] Waiting for server to finish processing the request...
[sf:deploy] Request Status: InProgress
[sf:deploy] Request Status: Succeeded
[sf:deploy] *********** DEPLOYMENT SUCCEEDED ***********
[sf:deploy] Finished request 0Af6100000UHGnYCAX successfully.
BUILD SUCCESSFUL
Total time: 14 seconds
Step 5 - destructiveChanges.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>Post__c</members>
<name>CustomObject</name>
</types>
<version>35.0</version>
</Package>
Step 5 - pacakge.xml (need to have something to deploy along with destruction...)
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>Contact</members>
<name>CustomObject</name>
</types>
<version>35.0</version>
</Package>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment