function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rohit TripathiRohit Tripathi 

How to Retain Relationship After Archiving ?

Hi,

I have to archive some data from Related Objects. Objects are related like :

Scenario 1 :    Obj A (Parent of) --------------->  Obj B
Scenario 2 :     Obj A (Look Up) ----------------> Obj B

If I make archives of Obj A and Obj B which are lets say AObj A and AObjB then will these two archive objects will be automatically related to each other or do I need to do something to relate them.



 
sfdcsushilsfdcsushil
I did not get your exact question. Lookup fields only store id which is used to refrence parent object. If you are archiving data outside salesforce and do some reporting on both the objects, you can archive both of them and related them with Id value on lookup field.