I have the code below that is giving me an error:
#region
if (entity.Contains("account") && entity["account"] != null)
{
EntityReference a = (EntityReference)entity.Attributes["account"];
//DateTime today = DateTime.Today;
Entity notes = new Entity("account");
notes.Id = a.Id;
notes.Attributes.Add("new_callstoday", new DateTime(today));
service.Update(notes);
}
#endregion
I am trying to add todays date to a field.
Can anyone help?
*This post is locked for comments
I have the same question (0)