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
stefanodlstefanodl 

Trigger on Task Status to update custom field in Account

Hello,

 

I need to create a Trigger on Task Status to update custom field in Account.

 

Each time that a new task (With Type = "Red Code") is created for a specific account (and/or contact?) the related field Red Code on Account should change to TRUE.

When the same task is completed, Red Code should change to FALSE and so on for each new task with Type "Red Code".

 

Can someone help me?

 

Many thanks in advance,

 

Stefano

Damien_Damien_

If you need help learning to write triggers, this is a good start for learning a basic on.  You can then build your functionality to mock the same sort of idea.

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_qs_HelloWorld.htm