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
StefanStefan 

Update Account last visit date with Event date

I would appreciate advice how to achieve the following. I have installed Eclipse and Force.com but so far have not got that far with it, so would appreciate some ideas how I could implement the below and the steps required to get from Developer edition into Production:

 

On the Account I have two custom fields:

 

1. Client Relations - Lookup to user field

2. Client Relations Last visit date

 

I would like to update the "Client Relations Last visit date" when a Client Relations person creates an event.

 

Simple version would update the account date field (even if a date in future) with Event date when Account Client Relations id = Event Assigned to.

 

More complex version would only update field if <= Today (but update future event when became past) and update date when event was assigned to any user with a Client Relations profile.