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
cassycassy 

Trigger to set a Lookup Field.

Hey everyone,

 

I'm a beginner in writing Apex Codes and I have a question about Trigger. Is it possible to set an lookup Field of an standard Object with a Trigger??

I have an Event Field and an Year Field for this Event in my Opportunities now I want to select the Campaign, which has the same Event and the same Year and put it into an lookup field. Is it possible to do this with a Trigger??

 

 

I will be very thankful if anyone of you can help me.

 

Thanks in advance