Hi
During a code upgrade (to 8.2) I'm getting the following error.
Cannot convert type 'Microsoft.Xrm.Sdk.OptionSetValue' to 'Microsoft.Xrm.Sdk.EntityReference'
my code is
---
if (DBStatus.custom_field != null)
InsertStatusHistory("Investigation Outcome Status", ((EntityReference)DBStatus.custom_field).Name, _caseID, service);
---
(EntityReference)DBStatus.custom_field).Name is the cause of the error
Can anybody let me know what the upgrade to this code should read like?