You need to sign in to do that
Don't have an account?

Trigger
Hi
I have created a custom object and i want trigger for this . Where i should write this trigger
trigger MileageTrigger on Mileage__c (before insert, before update) {
MileageUtil.areMilesAllowed(Trigger.new);
}
There is no option of New in Apex Triggers . Custom object does not appear in Setup->Customise.
Thanks
Go to Custom object,click on the Custom object
In that you will find Triggers then Click on new then you
will be able to create new Trigger.
Thanks
All Answers
Go to Custom object,click on the Custom object
In that you will find Triggers then Click on new then you
will be able to create new Trigger.
Thanks
There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Apex trigger Returnedtrigger caused an unexpected exception, contact your administrator: Returnedtrigger: execution of BeforeDelete caused by: System.QueryException: List has no rows for assignment to SObject: Trigger.Returnedtrigger: line 11, column 1".
Hi
On the object there are validation rules.Go and check the validation rules.
You are refering the object after you are deleting.
Hi,
I'm trying to create a trigger so that all leads that come in from a company I've already downgraded are automatically downgraded.....anybody able to help?