Change the CreatedOn Value

To change the value of createdOn value in MS dynamics CRM with c# :

you must use the early bound to change the value of createdOn
example :
I want to creat a phonecall entity with specific value of createdOn field:

PhoneCall phonecall = new phonecall();
phonecall.Subject = "Communication";
phonecall["createdon"]=new date ("19/07/2016");
phonecall["overriddencreatedon"] = new date("19/07/2016);

service.create(phonecall);

You must change the overriddencreatedon  to change the createdOn.

I used MS dynamics CRM 2016.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s