Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Can someone help with my if, else statement?

$
0
0

I want to run a block of code but only if my lookup field has data; I have the following line:

EntityReference a = (EntityReference)entity.Attributes["new_lead"];

if (a != null){

//Do the code

}

It's not working - anyone can give some advise?


Viewing all articles
Browse latest Browse all 8223

Trending Articles



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