+ Start a Discussion
Osiris77706Osiris77706 

Accessing the object which fired my trigger.

     Okay I'm trying to access the object that fired my trigger, from the trigger. For instance:

 

1) a new object of type Opportunity is created.

2) my trigger is fired

3) my trigger takes information from certain fields and adds them to a temporary variable of type Opportunity

4)a new object of type Project is created.

5) my trigger inserts values from the temporary varibable of type opportunity into the new Project object.

6) the new Project object is upserted.

 

Mind you I am very new to salesforce, and I imagine the solution is very simple, I just haven't found it yet. The problem I have is at step 3 above; more specifically accessing the object of type Opportunity that fires the trigger.

 

 

paul-lmipaul-lmi

look for "trigger.new" in the documentation and you should find what you need