function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
adiazadiaz 

Help writing a trigger

Hello,

 

I have never written an apex trigger and do not know where to start. Can someone guide me through this process or tell me if there is a non-coding method of achieving this?

 

What I essentially want is to create a record in a custom object based on a criteria met in another object:

 

I have a custom object named: Maintenance and another object called Support Ticket. I would like a trigger on Maintenance object that says if the status changes to "support needed"  create a new record in Support Ticket object.

 

Is this possible?

gv007gv007

1.You need a SF Developer Account

2.Enable Developer Mode in the Personal information

then

3.Go through Trigger Documentation available in Documentation area in SF site

4.Understand the concepts

5.After logging in SF developer account SetUp--->Develop-->Triggers--->Write yours logic in the test area and save it(You can also use forceIDE with eclipse)If you are new to the platform start with force.com work book available in the Documentation section area.

Thanks

Gopi