The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
27 views

How do I see the audit trail for Products added to a Opportunity

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
2
votes
0answers
49 views

Batch Apex: Invalid field StageName for OpportunityHistory

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 ...
2
votes
2answers
784 views

How to track history of a record of a custom object in apex class?

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?
0
votes
1answer
36 views

Values in OpportunitiesHistory do not seem to be there

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 ...
0
votes
2answers
266 views

Accessing OpportunityHistory in a SOQL query

My query: List<Opportunity> opps = [SELECT id, Probability, LastModifiedDate, OwnerId, (SELECT StageName,Probability,SystemModstamp FROM OpportunityHistories order by ...
2
votes
3answers
174 views

Setting SystemModstamp for OpportunityHistory

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 ...