Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Check CRM form field value Empty or Not

$
0
0

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


Viewing all articles
Browse latest Browse all 46379

Trending Articles