How do I see the audit trail for Products fields e.g. change in quantity or change in salesprice, for a Product added to a Opportunity
In my SalesForce managed package I have a Batch Apex job that queries OpportunityHistory and does some post-processing (basically serialize them and posts to external Web Service) When I schedule and ...
I want to track history(History which is shown below every record in salesforce user interface) of a record in apex class. How can i do this? What will be used in SOQL query?
My test does: Opportunity opp2 = opps.get(1); opp2.probability = 40; upsert(opp2); opp2.probability = 30; upsert(opp2); System.debug('****opp2History=' + opp2.OpportunityHistories); I was ...
My query: List<Opportunity> opps = [SELECT id, Probability, LastModifiedDate, OwnerId, (SELECT StageName,Probability,SystemModstamp FROM OpportunityHistories order by ...
I have some logic where I have to send emails about Opportunities that have certain OpportunityHistory objects at certain date times. I would like to test this but it means I need to be able to ...