+ Start a Discussion
prabhat jhaprabhat jha 

Tracking Latest Opportunity Created by user with Conditions on OpportunityLineItems

Hi All,
I have a Requirement where we want to track the user performance which is determined by the Days since Last ooportunityLineItemof specefic Type is added  by user   and suppose we track it by creating two fields on User Object 
1) Last Sensor Opp Created date(the day on which OppportunityProducts of specefic type is added to opportunity and 2)Days since sensor Opp Creation(Todays date- Last Sensor Opp Created date.
I have implemented it but in case of Deletion of Opportunity Line Items i want to roll Back to the previous value of Last Sensor Opp Created date.
Please suggest,i dont need code but any idea will help.
Thanks in Advance.