You need to sign in to do that
Don't have an account?
sfunston
How to identify the record that fired a trigger
Hi
I am trying to figure out if there is something like the virtural inserted table from mssql in SalesForce.
What I want to do is create a trigger on a Custom Object (CustObject) that has a master detail relationship with Opportunity. So when a record is inserted into CustObject I want to find all the other records in CustObject that have the same Opportunity__c and update only those records.
Any ideas would be appreciated.
I am trying to figure out if there is something like the virtural inserted table from mssql in SalesForce.
What I want to do is create a trigger on a Custom Object (CustObject) that has a master detail relationship with Opportunity. So when a record is inserted into CustObject I want to find all the other records in CustObject that have the same Opportunity__c and update only those records.
Any ideas would be appreciated.
This is what you could do... in your after insert trigger
Am I correct in thatTrigger.new is the new record that fired the triggered?