- The code example provided is sample code and should be treated as pseudo code. Please refer to it only for guidance.
- Thoroughly review the code in this repository and then design, author and test any new code you write before deploying to production.
- ArchiveAttachmentMapper Class - https://github.com/abychat/archiveRecordFileMapper/tree/master/force-app/main/default/classes
- Archive File Reference Link Object - https://github.com/abychat/archiveRecordFileMapper/tree/master/force-app/main/default/objects/Archived_Record_File_Reference__c
- Case Object Field for lookup to Archive File Reference Link - https://github.com/abychat/archiveRecordFileMapper/tree/master/force-app/main/default/objects/Case/fields
- Archive Case External Object fields for link to Archive File Rference Link - https://github.com/abychat/archiveRecordFileMapper/blob/master/force-app/main/default/objects/cache_case__x/fields/archived_record_file_reference_c__c.field-meta.xml
Learn more about Schedulable Apex @ https://trailhead.salesforce.com/en/content/learn/modules/asynchronous_apex/async_apex_scheduled