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
gulfkltogulfklto 

Package Trigger

Hello everybody,

I've written 2 trigger for 2 custom objects in my sandbox, now I want to deploy them in production.

I've written the test code, and I pass it.

 

Then I try to create a new package, I follow the various passages and arrive to the drop down menu in which I can select the objects I want to add to the package.

 If I select the "Apex Trigger" The available list is empty.

I've tried with the Apex class that contain the test... But when I try to upload the package I get some errors due to some custom fields that are automatically inserted in the package (and I cannot delete them even if I don't need them).

 

What cai I do?

JonPJonP

Do not use packages to promote changes from sandbox to production.  Packages are for ISVs creating commercial applications.

 

Instead, use the Metadata API by installing a client such as the Force.com IDE (for Eclipse) or the Force.com Migration Tool (for Ant).

 

In the Force.com IDE you can create a project against your sandbox, then use the Deploy to Server wizard to upload your triggers and test classes to your production organization.

 

http://wiki.developerforce.com/index.php/Force.com_IDE (link)

gulfkltogulfklto

I'm having a problem with the force.com IDE

 

http://community.salesforce.com/sforce/board/message?board.id=general_development&thread.id=31938