Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [field-history]

You can select certain fields to track, and display the field history in the History related list of an object. You can track the field history of custom objects, as well as the history of the following standard objects:

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

Managed Package: Field History Not Reflecting After Installation/Upgrade

For my managed package I am trying to enable tracking history for my managed object field. I can see it in the source and build is also successful. But these changes are not reflecting, when my ...
shamikh's user avatar
  • 33
0 votes
0 answers
175 views

Deploying tracked Activity field through VS Code

I'm having some issues figuring out how to deploy field tracking for an Activity field. I'm sure it's something to do with the weird Activity/Task/Event web that Salesforce has weaved. I tried adding ...
LFelts's user avatar
  • 1
0 votes
1 answer
168 views

Querying History Object in update trigger, not showing the new History Object record?

I have a custom object (TestObject1__c) wherein I am tracking some field changes. I also have related list under this object (TestObject1__History). The problem is the trigger I created isn't querying ...
ratRiot01's user avatar
0 votes
1 answer
189 views

Batch Class Test with History Object to Production problem

I'm a new salesforce developer, and i'm facin my first real world problem in my company. We have a custom object named "Solicitudes__c", is the detail side of a master relationship of ...
Arturo Alamilla's user avatar
0 votes
1 answer
138 views

ObjectHistory sort is not working correctly (UI as well as in SOQL)

Hoping someone has in idea into what is going wrong with history object record entry and sorting. Here is the soql query i'm running: SELECT Id,Field,OldValue,NewValue, CreatedDate FROM "...
Mavsav Sauve's user avatar
0 votes
0 answers
311 views

How to get Sales Cloud field tracking data into Marketing Cloud?

The problem: we want to have a journey that triggers on leads getting a certain status. All leads that currently already have that status, should not be submitted to the journey. So we thought: just ...
Sander de Jong's user avatar
-1 votes
1 answer
618 views

how to see previous value of a field in salesforce edited by mistake

I edited by mistake the value of a field. The track history of the custom object isn't enable. Can i do something to see the the old value? Maybe with a query.
user123788's user avatar
1 vote
1 answer
190 views

Is there a way to differentiate user from user-initiated systematic field value changes in field history?

I'm working in an org that is highly regulated and has multiple systematic field changes that happen as a result of a user making a single field change. For example, when an opportunity stage switches ...
S.B.'s user avatar
  • 2,081
0 votes
1 answer
363 views

Field Audit Trail not populating changes

I have added the field audit trail component to a lightning page and enabled history tracking on the object and relevant field, however field history isn't showing up on the related tab (the grid ...
SalesforceJunkie's user avatar
0 votes
1 answer
2k views

What is the best practice for cleaning up unused fields or fields that haven't been used in a long time? [duplicate]

I have been tasked with cleaning up fields across our org that are not in use or haven't been used in some time period. For each field of an object, I want to know when the last time its value was ...
Sasha's user avatar
  • 1
1 vote
0 answers
184 views

I am see records before 18 months without field audit trail in salesforce?

I am a little confused with salesforce documentation here: https://a.sfdcstatic.com/content/dam/www/ocms/assets/pdf/misc/Platform_FieldAuditTrail_Datasheet.pdf. As per the link, standard Field History ...
Mavsav Sauve's user avatar
1 vote
0 answers
158 views

Using a package to deploy a change removed field tracking on custom field

One of our engineers deployed a change to Salesforce using the package system - namely a new field on the Lead object. However, a field that was part of the same package on the account object: CSM ...
Swati Shet's user avatar
0 votes
2 answers
387 views

How to track formula field which is related with different objects?

I have one formula field on Opportunity which is the calculation of the Revenue from the SubscriptionFee__c object + Rate from the Rate__c object. In Opportunity, we want to track the history of this ...
Imo Jangam's user avatar
2 votes
0 answers
1k views

SFDX not pulling field history tracking for Person Account (__pc fields)

Enabling Person Account creates these fields ending with "__pc" in their API name. That happens when we create a contact field - Salesforce automatically creates the __pc equivalent of the ...
Riadh Mankai's user avatar
  • 1,088
0 votes
2 answers
1k views

User Info on Case History

I am trying to pull the user (person who made the change) via SOQL query on cases. This is not a "standard" field in the API Developers guide for CaseHistory but it is available for standard ...
Mike Bucci's user avatar
1 vote
1 answer
972 views

Field History prior to enabling History Tracking

'Salesforce starts tracking field history from the date and time that you enable it on a field. Changes made before this date and time aren’t included and didn’t create an entry in the History related ...
GroundToCloud's user avatar
1 vote
1 answer
245 views

How can i retrieve how many time a field with datatype (Lookup / Long Text Area ) being changed using SOQL on Case History?

Using this Soql : SELECT count(case.subject) FROM CaseHistory where field ='subject' i was able to retrieve number of time Subject field has changed Since we can not filter by OldValue / NewValue , ...
Farkous's user avatar
  • 27
0 votes
2 answers
875 views

How to get all the past values of a field in salesforce? [closed]

I want to write a trigger on opportunity and whenever opportunity stage is updated to Closed Won, check if the stage was updated to Closed Won in the past. If stage was updated to Closed Won in past, ...
Pragun Aggarwal's user avatar
1 vote
1 answer
1k views

Filters may not have any gaps within the composite key querying FieldHistoryArchive

Given this query: SELECT Id FROM FieldHistoryArchive WHERE FieldHistoryType = :fhType AND parentId = :parentIds ORDER BY Id LIMIT 10 I get the runtime error: Filters may not have any ...
cropredy's user avatar
  • 71.7k
3 votes
0 answers
1k views

Are Standard Field History Tracking deployable through SFDX?

My Standard field (Account) on a Standard object (Asset) looks like this: <?xml version="1.0" encoding="UTF-8"?> <CustomField xmlns="http://soap.sforce.com/2006/04/...
SFDC Dev 27's user avatar
1 vote
1 answer
114 views

Apex SOQL All Distinct Histories of a Field?

I am trying to query every state of Transaction_Property__c where the field Status__c is distinct. I've tried the following but it only gives me the latest record and not all versions. List<...
gpresland's user avatar
  • 153
0 votes
1 answer
341 views

How to test a batch that executes based on CaseHistory records? [duplicate]

I have written a batch class that updates a field on Case object with the owner name which is assigned by Case assignment rule. When I try to test this batch class, a part of the code which runs after ...
Santhiya's user avatar
1 vote
1 answer
439 views

Updating fields under history tracking through unlocked package release

We have one unlocked package that originally had some fields under history tracking and was released in production correctly. After a while we decided to add some more fields under history tracking, ...
Edmondo's user avatar
  • 1,712
0 votes
2 answers
610 views

Field History Tracking on BillingAddress which is null

I need to do Field History Tracking on BillingCountryCode and BillingPostalCode on Account. I only can chose the field BillingAddress in the Tracking setup. But whereas BillingCountryCode and ...
Andrea Voggenreiter's user avatar
2 votes
1 answer
3k views

Field History Tracking - control access to history?

re: the Field History Tracking feature, which you can turn on for specific objects and then specific fields within those objects: Is there any way to control access to the Field History? Apart from ...
codeulike's user avatar
  • 1,137
1 vote
0 answers
330 views

Field History Tracking for Territory Field on Opportunity object

I want to enable field history tracking for Territory field (API Name Territory2) on Opportunity Object. However on field history tracking page, I cannot find that field, so I am not really sure if ...
Ayush Goyal's user avatar
0 votes
1 answer
405 views

How to query on trackhistory property of an object?

I am attempting to produce a report which would show all of the objects which have Field Tracking History enabled, as well as the fields which are been tracked. I see here that it is a property : ...
Zoom_v's user avatar
  • 3,884
1 vote
1 answer
1k views

History objects values for Lookup fields

When you track a lookup field, the old and new values are ids. Is there any way to find out what the name of the lookup object is from that id on the history object? Trying to avoid having to get ...
discodowney's user avatar
3 votes
0 answers
2k views

Easy way to tell what has field history tracking enabled

I am looking for an easy way to verify what all has field history tracking enabled(and their retention policies). I was able to find this SOQL query SELECT QualifiedApiName FROM FieldDefinition ...
testtesttest's user avatar
0 votes
1 answer
1k views

Custom related list Lightning component for History table related list - delay in fetching

I created a Custom related list (Component A) that fetches history table and displays. It has a button to refresh the history list. In the same page, I have another lightning component (Component B) ...
Raja Vivekanandhan's user avatar
0 votes
2 answers
353 views

ContentVersionHistory does not record NewValue

As per this Salesforce article: history tracking on ContentVersion description field records NewValue only field history for the Content is only available by querying the object ...
Shamina's user avatar
  • 4,275
4 votes
0 answers
461 views

Why is Account.Name represented in AccountHistory.Field as TextName and not Name?

Given Enable field history tracking on Name fields: Account.Name, Opportunity.Name, and CustomObject__c.Name Create a new Account, Opportunity, and CustomObject__c providing a value Original. Change ...
cropredy's user avatar
  • 71.7k
2 votes
1 answer
2k views

Can I turn off read access to field history for some users?

All users should be able to see Cases, generally. Some of my users should see CaseHistory on the Case layout, and some (same profile) shouldn't. Is there any way to remove View permissions on ...
Charles Koppelman's user avatar
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
0 answers
168 views

Field History object - value of column "Field" when tracked field is lookup (standard v custom)

I'm trying to selectively delete an SObject's field histories based on the members of an sobject's fieldset (think PII deletion - feature available V42). Example: OOTB Order with field set containing:...
cropredy's user avatar
  • 71.7k
1 vote
0 answers
17 views

Having trouble accessing updated Contact.Histories in unit test [duplicate]

I have a custom object to manage patient (Contact) status changes, which affect product shipments. I'm adding a process to roll back changes based on receiving a cancelled form, based on a common ...
Duncan Stewart's user avatar
1 vote
1 answer
133 views

Use Field History Reports For Daily Values When No Change Occurrs

I'm trying to use Field History reporting to provide daily, weekly, monthly counts of a field for a record which gets updated every day but the field in question may not get updated the whole time, ...
RedQueries's user avatar
4 votes
1 answer
3k views

Are there any limits on field history tracking?

If I have a record that is updated every 5 minutes, and I have field history enabled on the field changing, will I run into any field history tracking limits? Ex. Does Salesforce only store X number ...
Aleksandar's user avatar
2 votes
1 answer
1k views

How to query on tracked field data?

I would like to know how I can query on tracked fields in all objects? I have org with 50 objects that have tracked fields. Now I wanted to know how much data used as tracking history for particular ...
Watson's user avatar
  • 199
3 votes
2 answers
1k views

Deleting ActivityHistory and FieldHistoryArchive

I Am trying to delete both ActivityHistory and FieldHistory archive but have run into the below errors: DML operation Delete not allowed on List<ActivityHistory> DML requires SObject or ...
Chriss's user avatar
  • 31
-1 votes
1 answer
269 views

How to show Knowledge article list History in Search Bar [closed]

I have created list of Knowledge articles in articles management standard object. i need to show that articles list in search bar when i am searching for related questions/data that time i need to ...
SFDCLearneR's user avatar
1 vote
1 answer
777 views

Account history does not show Created event

For some reason, the accounts that are created by our custom form on our Lightning Community does not show the "Created" entry on the Account History section. It shows the account was created by the ...
Swisher Sweet's user avatar
0 votes
1 answer
1k views

Does Salesforce Shield Field Audit trail allow field history tracking on detail objects in master details [closed]

Need to know about field audit trail, Salesforce shield.
Mangesh's user avatar
0 votes
1 answer
581 views

Custom field history tracking on partial update?

I would like to track more than 20 fields on my custom objects, so built a logic almost same as What is the best workaround for the 20 field history tracking cap?. This works most of the time if you ...
Ram's user avatar
  • 5
1 vote
1 answer
454 views

Tracking Address Changes - 10+ Years

I am reviewing a request to track changes performed on the address field and some other custom fields on the contact object for long periods of time. I have evaluated Field Tracking History and Field ...
S.B.'s user avatar
  • 2,081
0 votes
2 answers
6k views

Can't track changes on a Rich Text Area field with Field History Tracking enabled

I have a scenario, where I would like to track the changes on a Rich Text Area field. Step 1 After enabling the field history tracking on the Opportunity(that is my target object), I check the ...
Endrit Sino's user avatar
2 votes
3 answers
3k views

Tracking History of changes in Custom fields of custom objects

I want to track the history of 5 fields in custom object. I have selected the Track History checkbox against the corresponding fields in Custom Fields & Relationships section of the object.Still,...
Pankaj Andhale's user avatar
-2 votes
1 answer
2k views

Edit stage history fields

In lightning I need a way to custom the 'stage history' fields. The stage history present the 'amount' field, and I need to replace it with 'other_custom_opportunity_amount'. I can't locate the ...
aralele's user avatar
  • 65
0 votes
0 answers
108 views

When are history records created

Two types of transactions work on a set of records. First type selects records that don't have a flag set and sets it. The second transaction selects those records that have a flag set and removes the ...
ipavlic's user avatar
  • 3,736
1 vote
1 answer
76 views

Field History tracking analysis

I am trying to provide some analysis to identify how times in a given time frame the account key fields changes. I know that there is a native sfdc report that provides you that information, however ...
Masond3's user avatar
  • 427