UpdateOptionSetRequest UpdateOptionSetRequest UpdateOptionSetRequest UpdateOptionSetRequest Class

Definition

Contains the data that is needed to update the definition of a global option set.

public ref class UpdateOptionSetRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class UpdateOptionSetRequest : Microsoft.Xrm.Sdk.OrganizationRequest
type UpdateOptionSetRequest = class
    inherit OrganizationRequest
Public NotInheritable Class UpdateOptionSetRequest
Inherits OrganizationRequest
Inheritance
UpdateOptionSetRequestUpdateOptionSetRequestUpdateOptionSetRequestUpdateOptionSetRequest
Attributes

Examples

The following example shows how to use this message. For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface.

// Use UpdateOptionSetRequest to update the basic information of an option
// set. Updating option set values requires different messages (see below).
UpdateOptionSetRequest updateOptionSetRequest = new UpdateOptionSetRequest
{
    OptionSet = new OptionSetMetadata
    {
        DisplayName = new Label("Updated Option Set", _languageCode),
        Name = _globalOptionSetName,
        IsGlobal = true
    }
};
     svc.Execute(updateOptionSetRequest);
     
//Publish the OptionSet
PublishXmlRequest pxReq1 = new PublishXmlRequest { ParameterXml = String.Format("{0}", _globalOptionSetName) };
svc.Execute(pxReq1);

The following example shows how to use this message. For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface. For the complete sample, see the link later in this topic.

optionsets#WorkwithGlobalOptionSets4 optionsetsVB#WorkwithGlobalOptionSets4

Remarks

Message Availability

For this message to work, the caller must be connected to the server.

Usage

Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of UpdateOptionSetResponse.

Privileges and Access Rights

To perform this action, the caller must have privileges listed in UpdateOptionSet message privileges.

Notes for Callers

Constructors

UpdateOptionSetRequest() UpdateOptionSetRequest() UpdateOptionSetRequest() UpdateOptionSetRequest()

Initializes a new instance of the UpdateOptionSetRequest class

Properties

ExtensionData ExtensionData ExtensionData ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String] Item[String] Item[String] Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
MergeLabels MergeLabels MergeLabels MergeLabels

Gets or sets whether the label metadata will be merged or overwritten. Required.

OptionSet OptionSet OptionSet OptionSet

Gets or sets the metadata for the global option set. Required.

Parameters Parameters Parameters Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
RequestId RequestId RequestId RequestId

Gets or sets the ID of an asynchronous operation (system job). Optional.

(Inherited from OrganizationRequest)
RequestName RequestName RequestName RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
SolutionUniqueName SolutionUniqueName SolutionUniqueName SolutionUniqueName

Gets or sets the name of a solution to associate the global option set with. Optional.

Applies to