You need to sign in to do that
Don't have an account?
Raffaele Messina
CSV and objects relationships
hi everybody
i've made an lwc that displays all csv files that i have stroed into salesforce internal files storage. These CSVs serve as a backup, in fact i have all the records for a selected object (eg Account) into the csv.
Later the user can decide if he wants to "restore" the backup. In this case when i restore the backup i want to restore also the eventual relatsionship, eg account-contact. how can i implement this logic? Beacuse when inserting records, salesforce assigns new ids, so the relationship won't be maintained
i've made an lwc that displays all csv files that i have stroed into salesforce internal files storage. These CSVs serve as a backup, in fact i have all the records for a selected object (eg Account) into the csv.
Later the user can decide if he wants to "restore" the backup. In this case when i restore the backup i want to restore also the eventual relatsionship, eg account-contact. how can i implement this logic? Beacuse when inserting records, salesforce assigns new ids, so the relationship won't be maintained
Greetings!
I don't think there is any direct way to retrieve the files along with the related recordId.However,you can try with the below SOQL query to check based on individual Object.
Reference:
https://developer.salesforce.com/forums/?id=9060G000000BgW6QAK
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri