Sometime we need to set lookup field to null through server side code. We can do this using different way in late bound and early bound. If you are looking to set lookup field to null using late bound you can use below code
entity.Attributes.Add(“lookupfieldname”, null);
And if you are looking to set lookup field to null using early bound, you can simply use like below
entity.attributename=null;
Enjoy !!!
Thanks for the useful tip.
thanks a lot 🙂