How to Config SalesforceXytoolsForSublime

Posted by ExiaHuang on October 27, 2018

How to Config

SalesforceXytoolsForSublime

New Project

1539934585052

1539934552300

Config Project

Project Setting > Project Config Wizard

1539934605982

  • Select Sandbox Or Product
  • Input your username
  • Input your password
  • Input your security_token. If you haven’t security_token, let it blank
  • Select your API Version

1539934624694

Proxy Config

Project Setting > Proxy Config Wizard 1539934831888

Start to develop sfdc

Login Test

SFDC > Login SFDC

Retrieve Metadata

1539934961510

Select metadata to retrieve

1540365204093

And Click Start To Retrive

Modify the config file.

You also can modify the config file in /.xyconfig/xyconfig.json. You can use Project Settings > Open Project Config File. Each project has a config file.

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
31
32
33
34
35
36
37
38
{
    "username": "input your username",
    "password": "input your password",
    "security_token": "",
    "is_sandbox": true,
    "api_version": 40.0,
    "src_dir": "src",
    "authentication": "password", 
    "jar_home": "C:\\Users\\exia\\salesforce-project\\jar", 
    "use_os_terminal": false, 
    "auto_save_to_server": false,
    "app" : {
        "winmerge": "C:\\Program Files (x86)\\WinMerge\\WinMergeU.exe", 
        "notepad": "C:\\Program Files (x86)\\Notepad++\\notepad++.exe {file_name}",
        "Bash" : "cmd /k cd /d {file_dir}"
    },
    "default_browser": "chrome", 
    "browsers": {
        "chrome": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", 
        "IE": "C:\\Program Files\\Internet Explorer\\iexplore.exe"
    }, 
    "debug_levels": {
        "Apex_Code": "DEBUG", 
        "Callout": "INFO", 
        "Workflow": "INFO", 
        "Apex_Profiling": "INFO", 
        "Validation": "INFO", 
        "DB": "Info", 
        "System": "DEBUG"
    },
    "proxy": {
        "use_proxy" : false,
        "proxyhost" : "127.0.0.1",
        "proxyport" : "8888",
        "proxyuser" : "proxyuser",
        "proxypassword" : "proxypassword"
    }
}

Config your login Browser

Add your browsers setting as below. You can use Project Settings > Switch Broswer to set your default browser.

1
2
3
4
5
6
7
8
9
// Add your browser which you like!
// examle:
// "firefox":"Path of firefox!",
"browsers":
{
    "chrome": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
    "IE": "C:\\Program Files\\Internet Explorer\\iexplore.exe",
    "Firefox": "C:\\Program Files\\Firefox.exe"
},

Use Oauth2 to access sfdc.

If you want to use oauth2 to access salesforce, please click Project Settings > Change Authentication Type to set your authentication type.