SetStateRequest setStateRequest = new SetStateRequest()
{
EntityMoniker = new EntityReference
{
Id = new Guid(_orderid),
LogicalName = "salesorder",
},
State = new OptionSetValue((int)SalesOrderState.Submitted),
Status = new OptionSetValue(3)
};
service.Execute(setStateRequest);
{
EntityMoniker = new EntityReference
{
Id = new Guid(_orderid),
LogicalName = "salesorder",
},
State = new OptionSetValue((int)SalesOrderState.Submitted),
Status = new OptionSetValue(3)
};
service.Execute(setStateRequest);
No comments:
Post a Comment