function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TraceyTracey 

Deployment of Trigger without Package

Is it possible to deploy a trigger to production using Eclipse instead of creating and using a package
JonPJonP

Yes, it's not just possible but recommended.  Packages are for ISVs developing commercial apps for AppExchange, not for migrating low level changes between organizations.

 

The trick with deploying Apex classes and triggers to production is that you must meet the 75% minimum test coverage requirement.  When you deploy to a production organization (unlike Sandbox or Developer Edition), all your Apex test methods in your organization and in your deployment set will be run.  So you will want to deploy any new tests you've written alongside the new classes and triggers.

 

Jon

salesforce.com Product Manager

 

 

TraceyTracey
How does on deploy a trigger and it's testmethod using Eclipse?
JonPJonP

Once you have your Force.com project with your trigger and test class files, right-click on the "src" folder and choose Force.com > Deploy to Server.  There's also a Deploy to Server button in the toolbar (a little server icon with a green arrow on it).

 

The Deploy to Server wizard will walk you through the process of deploying your files to a different organization.