コードC#でオプションセットのオプションの値(ラベルではない)を変更する解決策があるかどうかを知っていますか。 (レーベル::OldLabel、値:OldValueプロパティ)例えばコードC#でオプションセットの値を変更する方法
、私はこのオプションを持っている
を、私はこれをしたい: (レーベル:OldLabel、値:NEWVALUE)を
は、私は次のようで試してみましたコードが、動作していない:
UpdateOptionValueRequest updateOptionValueRequest =
new UpdateOptionValueRequest
{
OptionSetName = _globalOptionSetName,
// Update the second option value.
Value = newValue,
Label = new Label("oldLabel", _languageCode)
};
_serviceProxy.Execute(updateOptionValueRequest);
//Publish the OptionSet
PublishXmlRequest pxReq3 = new PublishXmlRequest { ParameterXml = String.Format("<importexportxml><optionsets><optionset>{0}</optionset></optionsets></importexportxml>", _globalOptionSetName) };
_serviceProxy.Execute(pxReq3);