+ Start a Discussion
Sales Force FRMSales Force FRM 

How to invoke trigger on custom object under Opportunity

Hi Folks,
                I have created a custom object say "ABC" (App Setup-->create-->Objects) and this object is  under Opportunity  now i want to invoke  a trigger on this ,How to  do this, suggestions welcome. My trigger on custom object "ABC"  is as follows:

trigger ARPTrigger on ABC(after insert) {

}
The above one generated following error:

Error: Compile Error: Invalid SObject type name: ABC at line 1 column 23


Regards,
Rajeshwar.
TheSFDeveloperTheSFDeveloper
I think SalesForce is not supporting a trigger on Custom Objects. We are also getting the same error message.

When we create a trigger on standard objects, it works well.

TheSFDeveloperTheSFDeveloper
Hi,

Can you please make sure that the newly created custom object has been deployed into SalesForce.com environment.

I just found this and checked "Deployed" checkbox and now i am able to invoke a trigger on custom object

Please let us know if you have any queries.

Thank You,
Vishall

jrotensteinjrotenstein
Have you tried trigger ARPTrigger on ABC__c (after insert)?