I have created a permission set with 'Set Audit Fields upon Record Creation' and assigned to my user.
In my snowfakery recipe I have:
- object: Opportunity
fields:
...
CreatedDate:
date_between:
start_date: 2021-01-01
end_date: today
When I run the recipe I get:
[11/16/21 14:52:25] Field Opportunity.CreatedDate is not present or does not have the correct permissions.
Error: One or more schema or permissions errors blocked the operation.
If you would like to attempt the load regardless, you can specify '-o drop_missing_schema True' on the command.
How can I set the CreatedDate on an opportunity with snowfakery?
The cci documentation says:
"... If orgs are configured to permit setting audit fields upon record creation and the appropriate
user permission is enabled, CumulusCI can apply relative dating to audit fields, such as CreatedDate...."
So I am hoping snowfakery can also set audit fields
@Mark Irvine I tested and this worked for me. Are you sure the permission set is assigned to the same user you connected to CumulusCI?