Insert via package - CreatedById and CreatedDate

  • 28Views
  • Last Post 07 June 2022
  • Topic Is Solved
0
votes
Richard Hanson posted this 06 June 2022

Hi, when using a package to insert records into the Salesforce Account Object, I am not given the option to insert the CreatedById and CreatedDate values. I understand this can be done via other products, so are you able to tell me if I can insert to these fields, and if so, why I wouldn't be able to see them when mapping the fields in my import package?

 

The import package is named OppsWithNewAccAndContact

 

Thanks

Order By: Standard | Newest | Votes
1
votes
Mariia Zaharova posted this 06 June 2022

Hello Richard, 

To use these fields for INSERT operation, you have to enable the  'Create Audit Fields' permission in your Salesforce instance.

More details are available here https://help.salesforce.com/s/articleView?id=000334870&type=1

1) Setup-> User Interface

   

2) Enable the permission

Administration Setup-> Permission Sets

look for the Audit Fields




Open the field editor, 
Click Manage Assignments --> Add Assignments --> add the user who will be granted this permission.
After that these fields will become available for mapping. 

!Please note:
- this feature will be available for the connections created using the login of the user, which is granted with this permission
- the audit fields are available for mapping when performing the INSERT operation only.

- you have to clear the metadata cache in your connection to be available to map the audit fields.   

 

Best regards,

Mariia

  • Supported by
  • Richard Hanson
0
votes
Richard Hanson posted this 06 June 2022

Thank you so much for this quick response. That is very clear.

0
votes
Mariia Zaharova posted this 07 June 2022

Hello Richard,

 

You are welcome!

 

Feel free to contact us in case of any further questions.

 

Best regards,

Mariia

Close