I'm trying to mass update records using ModifyRecordsCommand. While doing this, i got a failure Message as : "One or more destination records is protected". I'm able to update records 1 at a time using ModifyRecordCommand, but unable to update/modify multiple. I got this same error while using ModifyRecordCommand, but using modRec.setModifyAnyway(true) solved the problem. This command is not available for ModifyRecordsCommand.
I have read in multiple places to update the ChangedTimestamp. But how do we modify that? It's a system generated field right.
Can you please help here.
Protected records cannot be changed. You will need to make sure there are no protected records when performing the change, or check if the record is protected and use the UnprotectRecordsCommand command beforehand.