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?
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?