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
James S.ax1698James S.ax1698 

Last activity for opportunity

Hi - we want to have an easy way to view the last activity completed on a lead or opportunity and the next activity, by reading the relevant logged activity data, and taking subject, type, date etc and fill it into lead/opportunities fields, all so that management can easily see on one line in a report what has happened, and what is to happen next.


Has anyone done similar to this?








To get the last modified data, You can do something like [select YOUR FIELDS from YOUR OBJECT order by Id Desc limit 1].


Hope this gets you started !

James S.ax1698James S.ax1698

Thanks Achillies - I added a new post with more description about my issue - dont suppose you'd know how to help? 


would really appreciate any assistance