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
TexasWheelingTexasWheeling 

Apex code where changing a Task field will update an Account field.

Here is the goal I am trying to achieve:

When a field named "Result of Call" on the Task object is updated to a specific value of "Conversation" for a Task with the record type of "Monthly Audit Call", I would like a trigger to update a field named "Monthly Audit Call" on the Account object to a specific value of "Completed". I would also like the "Monthly Audit Call" field on the Account object to be reset at the beginning of each month to the value of "Not Completed".

How could this be written in Apex to accomplish this? I am very new to Apex and have not yet learned how to write these triggers from scratch.

Thanks for the help!