
How does one access the bit field (yes or no) on a CRM 4.0 form using C#? I tried:
((Bit)target_entity.Properties["new_yesno"]).ToString()
but it didn't work. What is the correct syntax to retrieve the bit field value?
Hello,
Try to use following:
var boolValue = ((CrmBoolean)target_entity.Properties["new_yesno"]).Value;