I'm trying to copy a sales order, but set the createdDate to being the same as what it was copied from. I'm setting it after record.copy and record.load, but it's getting ignored. Is there a way to modify the createDate to be that of what it was copied from?
s
stalbert
10/18/2021, 1:49 PM
I don't think createddate (or modifiedate) is writable
👍🏼 1
s
screnshaw
10/18/2021, 1:49 PM
That's what I'm thinking as well
s
stalbert
10/18/2021, 2:01 PM
I think that's generally a good thing - so you can rely on the meaning of those fields. Can you use a custom field instead to mirror the original record created date?
s
screnshaw
10/18/2021, 2:35 PM
That's what we're going to do is create a custom field