Topic
- Use SalesforceXytoolsForSublime To Build package.xml
There are 2 ways to build package.xml
- Build From SFDC API.
- Use local file to build package.xml.
Build package.xml From Server
Sublime-Menu :SFDC-XY > Package Builder > Build Package.xml From Server
You can build package.xml like below.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>InstalledPackage</name>
</types>
<types>
<members>*</members>
<name>CustomLabels</name>
</types>
<types>
<members>*</members>
<name>StaticResource</name>
</types>
............
............
............
............
............
............
............
............
<types>
<members>*</members>
<name>Settings</name>
</types>
<version>42.0</version>
</Package>
Build package.xml From Open Files
Example, Open Account.object
,Blog.page
,BlogController.cls
,Blog__c.object
in Sublime
Sublime-Menu : SFDC-XY > Package Builder > Build package.xml From Open Files
You can build package.xml like below.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>Blog</members>
<name>ApexPage</name>
</types>
<types>
<members>BlogController</members>
<name>ApexClass</name>
</types>
<types>
<members>Account</members>
<members>Blog__c</members>
<name>CustomObject</name>
</types>
<version>42.0</version>
</Package>
Summary
Package Builder
Build Package.xml From Server
Package Builder > Build Package.xml From Server
Export all package.xml from server
Build Package.xml From Server From Open Files
1
Package Builder > Build Package.xml From Open Files
Build The deploy package from open files
Package Builder > Build Deploy Package From Open Files
This is only copy the open files to a dir, not deploy to server.
-
Previous
Use SalesforceXytoolsForSublime Salesforce Deploy Package -
Next
How to export Apex Code Coverage