Please wait, loading...

 

Add value in option set – Status Reason C#

January 7, 2018
Reference to be used – using Microsoft.Crm.Sdk.Messages;
var response = ((InsertStatusValueResponse)service.Execute
(
new InsertStatusValueRequest
{
    AttributeLogicalName = “statuscode”,
    EntityLogicalName = “task”,
    Label = new Microsoft.Xrm.Sdk.Label(“Auto Closed”, 1033),
    StateCode = 1 //Status: 0 active & 1 inactive
}
)).NewOptionValue;

Happy Coding 😊

https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/Microsoftdynamics365.png?fit=640%2C651
Microsoft Dynamics Community Profile

Learn more