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

Check , Attribute is not available in entity using IF condition

$
0
0

I can retrieve the entity in objRecord variable.

Entity objRecord = service.Retrieve(<here retrieve>)

If the value available in new_fieldname it will return in objRecord . so i will check like the following,

if (objRecord .Attributes.Contains("new_fieldname"))
{

}

How can I check the new_fieldname  Does not have value? don't want to check in else part  i need to check only in IF condition? how can I do this ? Is it possible ?


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>