Can someone help with my if, else statement?


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

    Wednesday, January 08, 2014 11:13 PM

All replies