1
Vote

Picklist items are wrongly translated - always 1 different

description

when I use
 
public enum ClientType
{
    Null, Client
}
 
with
 
    [XrmFieldMapping("customertypecode", CrmType = AttributeType.Picklist)]
    public ClientType ClientType { get; set; }
 
and Create an account with ClientType.Client, the customertypecode is shown the 2nd value in the Picklist - which is correct, but if I change
 
public enum ClientType
{
    Client, Null
}
 
i get an SOAP error, the customertypecode is not a valid selection ?

comments