You need to sign in to do that
Don't have an account?
MIDHUN G REDDY
How to Write a Trigger To Create Records
Hi,
How to Write a Trigger To Create Records
Explain me with code..
Thanks
Midhun
How to Write a Trigger To Create Records
Explain me with code..
Thanks
Midhun
If you want to learn how to create trigger. Then please check below post
http://amitsalesforce.blogspot.in/2015/06/trigger-best-practices-sample-trigger.html
Please let us know if this will help you
Thanks
Amit Chaudhary
Description:
The trigger should create a new record in a custom object called "Vehicles" when an Opportunity record is created with a specific value in one of its custom fields (the field is called "Type"). So, when an opp is created and saved with Type = "x", then the trigger should fire, and a new vehicle object record should be created that is populated with a few fields from that opportunity record.
Resolution:
Here is a sample code for reference: To learn the basics of trigger refer to : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers.htm
Thanks.