Hi All,
I am using the following body part to create product.
{
"statecode": 0,
"iskit": false,
"description": "Soft and sweet",
"productnumber": "l1",
"msdyn_taxable": true,
"producttypecode": 1,
"name": "Audi",
"isstockitem": false,
"msdyn_converttocustomerasset": false,
"productstructure": 1,
"defaultuomscheduleid@odata.bind": "/uoms(046f8e2c-9005-e811-a958-000d3af28edd)",
"defaultuomid@odata.bind": "/uoms(056f8e2c-9005-e811-a958-000d3af28edd)",
"versionnumber": 1363537,
"exchangerate": 1,
"statuscode": 1,
"quantitydecimal": 0,
"price": 350000,
"msdyn_purchasename": "Audi"
}
As, you can see i am sending "statecode": 0 i.e. "Active". Unfortunately, it is taking "statecode": 2 by default, I don't know why it is happening. Can anyone tell me why it is happening?