I am writing a PHP code that will create a User Account on Microsoft Dynamics CRM 4 API using the SOAP client. In API's fieldset there are many types of fields among the required fields (strings, boolean, lookup and picklist). So I'm sending the request with values for these fields. All the fields are handling by CRM server except those fields which's types are "picklist". They are coming to server blank. I can't find out why. Please help with syntax and etc. to create a user on CRM containing a picklist type field.
Are you using the Picklist class when setting your attribute?
E.g (Taken from Microsoft Forums):
DynamicEntity entity = new DynamicEntitty("name of your entity");
entity["picklist field"] = new Picklist(<integer value of picklist>);