I want to check CRM form fields value empty or not at C# plugin code.
Entity ent; if(ent.Attributes["telephone2"].ToString()==string.Empty) { Console.WriteLine(""); }
ent.Attributes["telephone2"].ToString() this is throwing KeyNotFoundException
when telephone2field's value is empty.
Now I need to check the value of telephone2 before it throws exception