The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
0answers
33 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
384 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
33 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
201 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
160 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 ...