How to Modify value of optionset by code C#?
DeleteOptionValueRequest deleteOptionValueRequest =
new DeleteOptionValueRequest { OptionSetName = _globalOptionSetName, Value = _insertedOptionValue };
// Execute the request. svc.Execute(deleteOptionValueRequest);
Another method
UpdateOptionValueRequest updateOptionValueRequest = new UpdateOptionValueRequest { OptionSetName = _globalOptionSetName, // Update the second option value. Value = optionList[1].Value.Value, Label = new Label("Updated Option 1", _languageCode) }; _serviceProxy.Execute(updateOptionValueRequest);
No comments:
Post a Comment