Adding New Items

Using the Solution Explorer you can add any necessary item to your project and then build or deploy it to Salesforce.

To add new items, right-click on a project or folder node in the Solution Explorer where you want to add a file and select Add ⇒ New Folder / New Item.

Add New Item


Add New Item wizard

Selecting the option for adding a new item will open the Add New Item wizard (which also can be called by the Ctrl+Shift+Alt hotkey).


Add new item


Currently, you can add such types of files:

  • Classes,
  • Test Classes using a template,
  • Batchable and Schedulable Classes,
  • Triggers,
  • Pages,
  • Components,
  • Lightning Components Bundles,
  • Lightning Application Bundles,
  • Lightning Event Bundles,
  • Lightning Interface Bundles,
  • Lightning Tokens Bundles.

All these files are automatically added to the Salesforce Org right after the creation. As an exception, you can also add Anonymous Apex or SOQL Queries files, which would be stored locally in your project but won’t be stored in any way in Salesforce Org.

In this wizard, you need to select the type of file that you want to create, enter its name and press the Add button to proceed.

On the left, you can see a menu that allows you to filter new items. You can group Apex code, Lightning Bundle, and Visualforce files that can be created.


Add new item sorted


On the right in the wizard, you can see the information about the selected file type and a filter field that allows you to search for the installed templates.

Adding Classes, Schedulable Classes, Components and Pages

For Classes, Schedulable Classes, Components, and Pages you will see the next window asking you to enter a name for the file that will be created. Once done, you need to press the Next button, and The Welkin Suite IDE will send a request to create an item in Salesforce org that you’re working with.


Create new class


In case of any errors during this process, you will see an appropriate status message. If the file with a given name already exists in Salesforce, you will be prompted to rename the item and retry.


File creation error


Adding Triggers

After you specified the name of a new Trigger you will need to enter the additional information: an object and a trigger operation, which will execute it.


Trigger creation


Adding Batchable classes

Similarly, creating a Batchable class requires specifying an object from the drop-down list.


Create Batchable Class


Adding Lightning Applications and Components

When creating Lightning Bundles, you will also have the ability to enter a description and add the members to a created bundle from a list.


Add Lightning Application Bundle


Adding Anonymous Apex and SOQL Query items

During the creation of Anonymous Apex or SOQL Query items you should specify the item's name in the New item wizard and press the Add button. The files will be created and opened immediately.

Adding a project to a solution

You can add a project to a solution in two ways:

  • right-click on your solution in the Solution Explorer and select Add ⇒ New Project / Existing Project,
  • navigate to the Main Menu: File ⇒ Add ⇒ New Project / Existing Project.

The next time when you open this solution, it will contain all the opened and added projects.

In this section:

This also may be useful:

Last modified: 2017/03/22 13:44

footer image