I am slowly getting the hang of salesforce and I am trying to get some fields linking up between accounts and opportunities and more.
My current issue is with Account Activity details. I have a set of accounts which show data and details connected to the account such as:
Account Owner Account Name Type Website Phone number and more...
In this account we have a feed of activity which give details of phone calls, meetings or emails which link to the account. Each event within the account activity has a Type
field which is either: Meeting, Call or Email.
What I am trying to do is create a Custom Field within the main account which looks at the account activity, and displays the date of the last meeting, so in terms of sudo code it would be something like:
SELECT DueDate WHERE type=Meeting and DueDate <= TODAY()
Or something along these lines (I know thats basically SQL).
If anyone could help that would be brilliant, specially by 5pm as my boss said he would buy me a pint if I get it figured out!
Thanks all.
---------- EDIT ---------
I am trying something like this:
CASE(TEXT(Activity.Type), Meeting, TODAY - LastActivityDate)
when creating a custome formula field, so im trying to get to the Event field called Type by doing:
Activity.Type
This does not work but it was a guess which was taken from LastActivityDate. I may be going about this all wrong, so anything will help. cheers!
---------- EDIT ---------
CASE(TEXT(Last_Event_Type__c), Meeting, TODAY - LastActivityDate)
– Matt KLast_Event_Type__c
orLast_Event_Type
as valid. any other ideas? – lukehillonline