I am using:
Entity Opportunitystatus = (Entity)crmService.Retrieve("opportunity", new Guid(opportunity.Attributes["opportunityid"].ToString()), new ColumnSet(allColumns: true));
string statustest = Opportunitystatus.Attributes["statecode"].ToString()
OUTput:
Microsoft.Xrm.Sdk.OptionSetValue
How i can check the opportunity status is open/lost mode.
*This post is locked for comments
I have the same question (0)