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
keerthikeerthi 

Trigger in Enterprise Edition

Hi All,
 
 
     I have created a follwing trigger for my developer edition. This works good. But i wanted this same trigger in my Enterprise Edition. I know in Enterprise edition we cant able to write trigger. I wanted to know how to use this trigger in production environment. Let me know the detail step by step functionality for deploying this trigger to my production environment.
 
 
 
trigger Bed on Trigger_Example__c (before insert, before update) {
      Map<String, Trigger_Example__c> teMap = new Map<String, Trigger_Example__c>();

      for (Trigger_Example__c te : System.Trigger.new) {             
            if (te.Bed__c != null) { // skip null emails
            if  ( System.Trigger.isInsert || 
              (System.Trigger.isUpdate && 
              te.Bed__c != System.Trigger.oldMap.get
(te.Id).Bed__c)) { 
                      
                  if (teMap.containsKey(te.Bed__c)) {
                         te.Bed__c.addError('Another new session has the //same bed.');
                 } else {
                      teMap.put(te.Bed__c, te);
              }
 }
 }
}
      
   for (Trigger_Example__c te : [select Bed__c from Trigger_Example__c where Bed__c IN :teMap.KeySet()]) {
         Trigger_Example__c newTriggerE = teMap.get(te.Bed__c);
      newTriggerE.Bed__c.addError('A session with this bed already //exists.');
 }
}
SuperfellSuperfell
see the section on deployment in the apex docs.
http://www.salesforce.com/us/developer/docs/apexcode/index_CSH.htm#apex_deploying.htm
keerthikeerthi

Hi,

I want to deploy trigger in eclipse. For this i have downloaded and "find and install Force.com". Then in window option select open perspective and select force.com and hit ok.

Then i try to create a new Force.com Project it shows login credentials and which i entered project name, username, password and soap endpoint. But it shows an error message like

"Unable to create connection to salesforce"

invalid username or password or user locked out.

Please can anyone help to resolve this problem

 

 

 

SuperfellSuperfell
You probably need to use your security token, see the online help on identity confirmation