Tag: file copy
-
How to Transfer Files from one object to another in Salesforce

Requirement: Move all related Files of deceased Contact to either Opportunity or Account record. If Opportunity is linked then transfer to Opportunity else to Account. Sample Code:
-
How to transfer attachments from one object to another in Salesforce

Requirement: Move all related Attachments of deceased Contact to either Opportunity or Account record. If Opportunity is linked then transfer to Opportunity else to Account. NOTE: Below code will clone the attachments, so once cloning is completed, you can delete old attachments. This way you will be safe with backup.…
