When we are creating new records and need the created on field to take the value provided instead of system generated, we can map it to the Record Created On field during Import from Excel option.
In fact in the Import Data Wizard also, although it doesn’t show the Record Created On field for mapping, we can map to Created On field and the behavior will be same. (and in the case of the Import from Excel in the Grid, we do not get the Created On field for mapping)
Below is the record we have created through Import Data Wizard, and we can see the values of Created on and Record Created On for it.
Suppose we want to Test & Enable Mailbox of the below user programmatically.
We can see the below notification for the disabled mailbox.
This mailbox is disabled for email processing. For more information, see the alerts.
Below is the sample code –
On running the code, we can see the notification removed and the mailbox for the user enabled successfully.
C# Code –
CrmServiceClient svc = new CrmServiceClient(ConnectionString);
var mailBox = new Entity("mailbox", new Guid("C88A539A-F493-EC11-B400-000D3A4F37D3"));
// testemailconfigurationscheduled = Indicates if the email configuration test has been scheduled for a mailbox record
mailBox.Attributes["testemailconfigurationscheduled"] = true;