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
Andrew1222Andrew1222 

Last Activity "Type" on Account

I am very new to development in SalesForce.  

 

There is a standard field on account called Last Activity which says the date of the last activity.  I would like to know what type of activity the last activity was (email, call, voicemail, etc).

 

Can anyone give me some pointers on how to begin developing to create this new field?

 

All help is very much appreciated.

KM_QuantumColorKM_QuantumColor

I am also 'new' to salesforce, but I believe you are referring to one of two activity objects

that is related to account.

 

They are 'OpenActivity' and 'ActivityHistory'

 

to log activities, you have to create either 'tasks' or 'events', and set the status to

their picklist value (example - 'In Progress', "Completed' - non completed 

events/tasks should be stored as openactivity where as tasks/events set as

"completed" should be stored in the activityhistory. (Also, you give them 'whoid' of

their affiliated lead/contact and 'whatid' of thier affiliated accountid)

 

http://www.salesforce.com/us/developer/docs/api/index.htm

 

Is a good link where it shows the salesforce objects in detail.

 

Good luck, and if you do figure it out, post ur code as I am having trouble setting fields

within the tasks/events correctly.

 

 

Prafulla PatilPrafulla Patil

you have to add new custom formula field on Account with formula expression "TEXT(LastActivityDate)"