Questions tagged [accounthistory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

Expression must be a list type: AccountHistory

Does anybody see what is the mistake in this snippet of code? List <AccountHistory> accHistory = [SELECT Id, Account.name, Field, OldValue, NewValue FROM ...
user avatar
  • 99
0 votes
0 answers
116 views

Wrapper Class for Account or Contact history record

I have a requirement to show a account and contact changes in lwc. I am trying to create a GenericHistoryRecord wrapper class with 2 constructors. If Account record is being updated then call ...
user avatar
  • 41
0 votes
0 answers
52 views

How to write test class that retrieves the account history data? [duplicate]

I am using an apex class(HistoryManager) which has a method getHistoryRecords that takes 2 parameters namely a soql query(String) and a recordId(String) and calling it in the connectedCallBack() ...
user avatar
  • 61
0 votes
0 answers
335 views

Not able to pass the Oldvalue , newValue to HistoryObject Record through test class

I am not able to insert the newValue and OldValue of Account History record in Test class. In the below apex class, historyList containes the History object records. when i created account and updated ...
user avatar
  • 1
0 votes
1 answer
532 views

Need to pull old value of a field on account object which is not enable on history tracking

I need to capture old value of a custom field on account object which may not updated recently. We are not enabled history tracking for that field. So would it possible to retrieve old value of field ...
user avatar
  • 11
0 votes
1 answer
327 views

Duplicate values for Query on Account History object

When im running this Select Account.name, NewValue, OldValue, IsDeleted from AccountHistory where Field = 'Owner' ORDER BY CreatedDate DESC in salesforce it is giving me two records for one change....
user avatar
  • 361
2 votes
1 answer
608 views

How to track Account Description field changes in Field history Tracking?

I'm trying to track history of Account Description field. Related list just shows it has changed, but seems no value changes being tracked. Tried to query using SOQL, but it doesn't give any value ...
user avatar
3 votes
1 answer
827 views

AccountHistory not deleting immediately after an update

As part of the GDPR compliance process, we are updating a few name fields in Account with a random text and then calling the AccountHistory delete function for the tracked field. We are running the ...
user avatar
  • 53
1 vote
1 answer
713 views

AccountShare history after delete - how to determine who removed manual sharing?

At present, my organization using the territories(tm 1.0) for sharing accounts. If user want to manual share account to specific territory he can do that in UI. But we need to feature to account ...
user avatar
  • 400
3 votes
2 answers
762 views

Is it possible to write changes of Account ownerships into the Activity History?

The requirement is to show a list of all ownership changes of an Account within the Account tab. Adding them to the Activity History would be nice, but a separate list is fine, too. All I (quite ...
user avatar
  • 133
2 votes
3 answers
2k views

Create AccountHistory record in test class

Can we create the AccountHistory Reocrd in test class if it is possible plz post how ?
user avatar
0 votes
2 answers
2k views

How to delete Account History details

I would like to know as to how do we delete certain rows from the Account History details. I had tried using the Data loader but there is no way to export or delete the account history ?
user avatar
0 votes
1 answer
532 views

Summarize Custom field in Account History Report

Is there a way to summarize a custom field value (Old Value, New Value) in a Account History Report. I tried everything but it just doesn't provide me that option. See image below. I've marked ...
user avatar
1 vote
0 answers
679 views

Account History Track custom object

I have created this custom object. Problem is for say Account ID A1 if Lastname field was X now becomes Y. It creates an entry for this with Old value X new Value Y. Now if again updated by Z, the ...
user avatar
  • 2,900
2 votes
1 answer
195 views

Can you delete AccountHistory data?

Does anyone know if it's possible to delete AccountHistory data? Bonus points: Is there an easy way to find the total number of AccountHistory records in an org?
user avatar
  • 6,059