Fixing selected Salesforce fields would require that you identify the affected records, choose an available historical version, and restore only the fields that need correction. GRAX supports field selection when applying point-in-time updates to existing live records. However, selecting specific fields only limits the intended restore update. Salesforce automation and concurrent updates can still affect other fields. So, review later changes, historical nulls, and automation before applying the restore.
When is field-level restoration the right approach?
Field-level restoration is usually considered the right approach in situations where specific fields on existing Salesforce records contain unwanted or incorrect values, and the suitable historical values are available in a backup. Instead of rolling back the entire records in these scenarios, field-level restoration allows administrators to select the affected fields and restore their earlier values.
An example is an integration that accidentally overwrites the Amount field on several Opportunity records. These records are still available in Salesforce, but their deal values are now inaccurate. If the original values are available in a GRAX backup, an administrator can use Point in Time Restore to select the affected records and restore the Amount field.
This approach helps to limit the restoration to the exact information that needs correction. The fields that are not selected remain outside the restore payload, although Salesforce automation and other concurrent updates can still affect the final result.
It is important to note that field-level restoration is not always the right approach for every Salesforce data recovery situation. Every situation is different, and the appropriate recovery method depends on what happened to the record and what needs to be recovered.
For more understanding of backup and recovery, check our Salesforce backup and recovery guide.
Fix the Bad Field, Keep the Good Work
Restore only the fields that broke, not the whole record.
Salesforce Data Recovery Approaches
| Recovery situation | Appropriate approach | What it does |
| One or more known fields are wrong, and other current values should be kept. | Field-level restoration | Updates only the selected fields using available historical values |
| The intended target is the earlier state of the record as a whole, and the broader set of changes has been reviewed. | Whole-record rollback | Restores a broader set of record values to an earlier backed-up state |
| A record has been deleted. | Deleted-record recovery | Recreates the deleted record in Salesforce using the appropriate recovery workflow |
GRAX provides a Point in Time Restore feature which supports field selection when updating existing live records. However, restoring deleted records or recovering archived records involves a separate workflow. These operations should not be confused with the selected-field update process.
What should you establish before choosing a restore point?
To choose the right Salesforce restore point, you have to:
- Identify the incident scope and affected records: Determine which Salesforce records were affected by the unwanted update. Identify the objects involved, the number of affected records, and their record IDs. Having the correct record IDs helps you select the intended records during restoration and avoid including records that were not affected.
- Identify the damaged fields: List the fields that contain unwanted values and note their API (Application Programming Interface) names. API names are identifiers that are used when working with Salesforce data to distinguish fields. For example, the field label Amount has the API name Amount, while Opportunity Stage uses StageName.
- Check the available historical versions: Check to confirm that your Salesforce backup contains the historical values you intend to recover. The available backup history determines which previous record versions can be used for restoration. Keep in mind that choosing a particular timestamp does not automatically guarantee that a backup exists for that exact moment or that every intermediate change was captured.
- Compare the current values with the values you intend to restore: For each affected record you want to restore, compare its current field values with the historical values you intend to recover. This step helps you to establish which values need to be changed and which values should remain as they are.
You should also investigate any legitimate updates that might have been made after the unwanted change occurred. Salesforce field history can help you identify changed Salesforce fields and the incident window.
Save a dated copy of the affected record IDs and the current business fields you will verify. For this example, include Amount, StageName, and CloseDate. Record any legitimate intervening edit when you recheck the live record.
- Distinguish the 3 relevant timestamps: When planning a restoration, it’s important you keep these 3 times separate:
- Incident time: When the unwanted update occurred
- Backed-up version time: When the historical record version containing the value you need was captured
- Execution time: When the administrator applies the restoration in Salesforce
These times do not necessarily have to match. For instance, an unwanted update might occur on Monday, but the last available backup containing the correct value might have been captured earlier. You must therefore choose a historical version that actually contains the value you want and not assume that selecting Monday’s timestamp will recreate a state that was never captured.
Applying these checks to an example: An integration that accidentally changes the Amount field on an Opportunity record from $50,000 to $5,000. After the incident, the salesperson legitimately updates the StageName from Qualification to Negotiation and changes the CloseDate from November 30 to December 15.
In this situation, the administrator wants to recover the original Amount without losing the salesperson’s later updates.
Here is what the planned restoration would look like:
Illustrative restore plan:
| Field | Available earlier value | Current value | Intended direct field update |
|---|---|---|---|
| Amount | $50,000 | $5,000, unwanted | Set to $50,000 |
| StageName | Qualification | Negotiation, valid | Do not select |
| CloseDate | November 30 | December 15, valid | Do not select |
This table shows the intended restore payload and not a guaranteed outcome. Selecting Amount means that field is included in the proposed update while StageName and CloseDate are excluded.
However, consider another Opportunity record where the Amount was initially $50,000, accidentally changed to $5,000, and later legitimately negotiated to $60,000.
Restoring that particular record’s Amount to $50,000 would overwrite the legitimate update. It should therefore be flagged for further review and not be automatically included in the same restoration decision.
Once the checks we listed have been carried out, you can proceed to configure the restore.
Know Which Versions You Actually Have
Compare backed-up record versions before you restore.
How do you configure a selected field restore in GRAX?
GRAX supports field-level restoration through its Point in Time Restore feature, which allows administrators to restore selected Salesforce records to an earlier backed-up state.
The selected field-restore process using this feature in the GRAX application requires that you:
- Select the affected Salesforce records: Open the GRAX application, navigate to the “Restore” tab, and select “New Restore” to start the process.
Identify the records you want to restore using any of the GRAX-approved ways of selection:
- Search: Use Global Search to find records by selecting the Salesforce object, record status, and date filters. You can also apply optional field filters to narrow the results.
- CSV (Comma-Separated-Values) Upload: Upload a CSV file that contains the IDs of the records that you have already established that you want to restore. The file must have a header named Id.
- Record IDs: Enter individual Salesforce record IDs manually.
- Salesforce Reports: Select a Salesforce report that contains the records you want to restore. The report must be for a single object and include the record ID. Use an ungrouped report without summaries or cross-object joins. Save it in a folder the GRAX integration User can access, and include GRAX in the report title or folder name so it appears in the app.
Note that each of these methods has its own requirements and limits, which makes them better suited to specific record-selection needs; e.g the CSV method is suitable when you have a large list of record IDs to restore.
- Choose the Point in Time Restore Option: After selecting the affected records, select Point in Time Restore as your preferred restore type.
Aside from its field-level restore capability, the point-in-time restore feature also enables you to update your existing Salesforce records using historical data that is available in the GRAX Data Vault.
- Choose the appropriate restore point and select the fields: The next step is to specify the date and time that you want to restore the records to. GRAX uses the timestamp field applicable to the object, such as SystemModStamp, LastModifiedDate, or CreatedDate, to find the backed-up version available before the selected time.
Once the restore point is selected, you can specify which fields should be included in the update using the Field Selection control. The interface provides a filtered selection control that allows you to choose the fields you want to restore.
For instance, if an integration has incorrectly changed the Amount field on several Opportunity records, you can select Amount without including StageName or CloseDate. This will cause GRAX’s system to use the historical Amount values in the proposed restore. This process, however, does not automatically determine whether newer changes to the selected field were legitimate or accidental.
- Review the restore preview: After configuring the restore, GRAX prepares the historical data and generates a preview of the records and values that will be written back to Salesforce.
The preview shows the proposed restore date, and it allows you to confirm that the correct records, fields, and historical values have been selected.
Here are things to pay attention to when going over the preview:
- Check if the correct Salesforce records are included
- Confirm if only the intended fields are selected
- Confirm if the historical values selected are the ones you want to recover
- Check if any legitimate updates have been made after the incident that could be overwritten
- Check if the unexpected empty or unavailable values need further investigation
For a more comprehensive review, you can also download the prepared record set as a CSV file.
- Confirm and execute the restore: Once you are satisfied with the preview, proceed to the confirmation screen.
On the screen, compare the selected fields in Salesforce against the values you have previewed. If every detail is correct, click on “Restore Data” to start the process. This action causes GRAX to submit the records to Salesforce in batches.
You can monitor the execution process through the GRAX console to review both the progress and status of individual record batches.
A finished restore job does not necessarily mean every affected record was successfully updated. It is therefore good practice to review the result after the restore to identify successful and failed records and then investigate any errors that require attention. GRAX also provides a retry flow for failed records, which allows you to address the cause of an error and retry the affected subset.
Compare backed-up record versions in Salesforce (Optional)
GRAX also provides a Record Versions Component through its second-generation Salesforce managed package. This Lightning desktop component allows users to compare backed-up record versions, review their changes, and select individual fields from a historical version for restoration.
Note that this is a separate record-level interface from the standalone Point in Time Restore procedure.
What if a selected field has newer legitimate updates?
Selecting a field for restoration does not automatically identify which changes to that field were correct and which were unwanted. This is important when a field has received multiple updates since the incident, as restoring an earlier value could overwrite a legitimate change.
If an Opportunity’s Amount has since been legitimately updated to $60,000, restoring the earlier $50,000 value would overwrite that valid change. The correct intervention in this situation is to review the affected record and establish the intended value before proceeding. If the correct target is unclear, exclude that record from the restore until the conflict has been investigated.
Account for concurrent activity
Also, changes can occur while you are preparing a restore. For example, a salesperson or integration could update an affected record after you have reviewed the preview but before the restore is executed.
To reduce the chances of this occurrence, coordinate the repair with the relevant teams and recheck the live values of affected records just before execution. This action helps to identify changes that may have occurred since the initial review and allows you to reassess the planned restoration.
How do nulls and Salesforce rules affect the restore?
Understanding how historical null values affect selected fields
It is not every field in a backed-up record that has a recoverable value. A field might either have been empty when the backup was taken, may not have existed at that time, or may not have been accessible to the GRAX Integration User. These field values are referred to as null values.
GRAX displays these historical null values as #N/A in the restore preview. A #N/A can also mean that the field did not exist or the integration user lacked access when the backup ran. If you proceed with the field selected, the restore will clear its current value in Salesforce. For example, if an opportunity’s Amount field currently contains $50,000, but the historical version selected for restoration has no value for that field, the preview displays #N/A. Proceeding with the restore would clear the existing Amount value instead of restoring a previous Amount.
If clearing the field is not the expected outcome, deselect it before you proceed. Check these entries when reviewing the preview, especially where the current field contains important business information.
Also, note that a historical null displayed as #N/A is not the same as a blank input in other parts of the restore interface. A historical null, on the other hand, means that the selected field can be cleared in Salesforce when the restore is executed.
How Salesforce validation rules and automation affect Field-level restore
Every selected-field restore is subject to the permissions, validation rules, and automation that are configured in your Salesforce environment.
For example, a validation rule may reject a historical value that no longer meets the organization’s current requirements. Restricted picklist values can also prevent an update if the historical value is no longer permitted. This is the same way that Apex triggers, workflow rules, and other automation may run when records are updated and change related records or trigger actions such as notifications.
These effects can extend beyond the fields that are selected for restoration. Note that while choosing only specific fields can limit the intended restore update, it does not guarantee that Salesforce automation or related processes will leave other fields or related records.
The Salesforce rules and automation during a restore can vary based on the type of restoration intended. Before restoring records, review the important permissions, validation rules, triggers, and automation with your Salesforce administrator. GRAX recommends that the rules be understood and validated in a development or sandbox environment before carrying out a production restore.
Also, do not assume that automation can be disabled during a Point in Time Restore. GRAX documents options for controlling automation in other restore types, but these options are not necessarily available for Point in Time Restore.
See the Restore Before You Run It
Spot nulls and conflicts in the GRAX preview first.
How do you verify the repair and investigate exceptions?
After executing a selected-field restore, the next step is to confirm that the intended records and fields were updated correctly without disrupting other important data.
How to verify the restored records and values
Start the restore-verification process by reviewing the restore job results and comparing them with the records you originally selected. This helps you identify successful updates, failed records, and records that were not processed.
Next, verify the actual data in Salesforce. Here is a sequence of checks you can carry out to confirm that the repair achieved its intended outcome:
- Record count and integrity: Compare the records in your original selection with the restore results. Confirm that the expected records were processed and identify any missing or failed records. Check and investigate any unexpected discrepancies.
- Do a before-and-after comparison: Compare the restored fields against the historical values you intended to recover. Also check important fields that were excluded from the restore to confirm that their current values remain appropriate. For example, if you restore the Amount field on an Opportunity, check that its StageName and CloseDate have not been unintentionally changed. Use a dated baseline you saved before the restore to compare the affected records and their business fields against their pre-restore values.
- Data type and format validation: Check that the restored values are valid for their Salesforce fields. This includes confirming important details such as the dates, numbers, text, and picklist values are accepted and displayed correctly.
- Related record integrity: In places where restored fields contain references to other Salesforce records, verify that those relationships still point to the correct records. This helps to identify problems that may affect related records or business processes.
- Application and business process checks: Open a sample of the affected records in Salesforce and confirm that their values are displayed correctly. Where relevant, check that the related calculations, automation, and business processes continue to work as expected.
Remember that Salesforce system fields and timestamps may change during an update. The aim is not to expect every field to remain identical to its pre-restore state, but to confirm that the intended business values were recovered and that no unexpected changes affected the records.
Investigate common restore exceptions.
If the result of the verification check does not match your expectations, investigate the affected records before attempting another restore.
Here are some of the common symptoms, their possible causes, and the checks and actions that can help you address them.
| Symptom | Possible cause | What to check | Next step |
| Some expected records are missing from the restore results. | Records may have been excluded by the selection criteria, deleted or archived, skipped by the selected restore operation, or created after the selected restore point. | Review the original record selection, record status, and restore job results. Compare the missing IDs’ creation times with the restore point. For records that were created later, review whether a later captured version contains the intended value. Keep those IDs separate if they require a different restore point. | Correct the selection where necessary. Use the appropriate recovery workflow for deleted or archived records. |
| A restored field contains an unexpected empty value. | The historical version may have contained a null value. | Review the restore preview and the historical version used for the update. | Establish the correct value and restore it from another available version if appropriate. |
| Salesforce rejects an update. | The historical value may conflict with current permissions, validation rules, or restricted picklist settings. | Review the error returned by Salesforce and check the relevant permissions and field restrictions. | Resolve the underlying issue before retrying the affected record. |
| A field changes again after the restore. | A user, integration, or Salesforce automation may have written a newer value. | Review the record’s change history, relevant automation, and connected integrations. | Identify and address the source of the new update before applying another correction. |
Once you identify the cause of a failed update, address it before retrying the affected records. If only some records failed, focus on that subset alone and not the repeat of the entire restore.
For records that still exist in Salesforce, choose a captured version and select only the fields you intend to repair. Recheck those fields for later edits before running the job. Afterward, verify the corrected values and check whether automation changed other business data. To review your scenario with GRAX, discuss your Salesforce recovery requirements.