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
JvVoorstJvVoorst 

help needed creating a basic Apex trigger

Hi,

 

 I'm totally stuck trying to create my first Apex Trigger. It should be a very basic one but I can't figure out how to write it.

 

What I want to do is:

 

On Account

When the custom field "Collectief_Code" contains a specific value (for instance AJG67FGK) and the custom field "Collectief" is empty. I want to update the custom field "Collectief" with a specific value (for instance VipTel)

 

Should be easy does it so I'm quite embarrassed to say I don't have a clue..

 

Help is much appreciated!

Best Answer chosen by Admin (Salesforce Developers) 
goabhigogoabhigo

Workflow is better for this case.

All Answers

goabhigogoabhigo

Workflow is better for this case.

This was selected as the best answer
JvVoorstJvVoorst

yes of course how stupid I forgot that option

 

thx