Skip to main content

Questions tagged [accounthistory]

Filter by
Sorted by
Tagged with
3 votes
2 answers
2k 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 ...
Olaf's user avatar
  • 133
3 votes
1 answer
1k 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 ...
A_J's user avatar
  • 53
2 votes
1 answer
1k 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 ...
Pasan Eeriyagama's user avatar
2 votes
1 answer
377 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?
dphil's user avatar
  • 6,155
2 votes
3 answers
3k views

Create AccountHistory record in test class

Can we create the AccountHistory Reocrd in test class if it is possible plz post how ?
Rohit K Sethi's user avatar
1 vote
1 answer
1k 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 ...
Adamo's user avatar
  • 381
1 vote
0 answers
750 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 ...
Testing_SFDC's user avatar
  • 2,968
0 votes
1 answer
1k 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 ...
bujji D's user avatar
  • 21
0 votes
2 answers
5k 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 ?
DominicSeb's user avatar
0 votes
1 answer
59 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 ...
mhdev's user avatar
  • 119
0 votes
1 answer
845 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 ...
Darko Todorovski's user avatar
0 votes
1 answer
944 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....
RaJu's user avatar
  • 361
0 votes
0 answers
262 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 ...
mSinisa's user avatar
  • 51
0 votes
0 answers
56 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() ...
Mukesh's user avatar
  • 61
0 votes
0 answers
601 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 ...
Srinu's user avatar
  • 1