Dynamics Crm online 2016 set opportunity statecode
<p>I am looking for the C# (console application) syntax required to set the statecode of an opportunity to "not active" or "closed". In fact I would also like to know where I can find the available values for statecode, since in the field properties I see that the datatype is "Status", but I don't see the available values.</p>

<p>Thank you in advance</p>