CrmServiceClient.CreateOrUpdatePickListElement(String, String, List<LocalizedLabel>, Int32, Boolean) CrmServiceClient.CreateOrUpdatePickListElement(String, String, List<LocalizedLabel>, Int32, Boolean) CrmServiceClient.CreateOrUpdatePickListElement(String, String, List<LocalizedLabel>, Int32, Boolean) CrmServiceClient.CreateOrUpdatePickListElement(String, String, List<LocalizedLabel>, Int32, Boolean) Method

Definition

Adds an option to a pick list on an entity.

public:
 bool CreateOrUpdatePickListElement(System::String ^ targetEntity, System::String ^ attribName, System::Collections::Generic::List<Microsoft::Xrm::Sdk::LocalizedLabel ^> ^ locLabelList, int valueData, bool publishOnComplete);
public bool CreateOrUpdatePickListElement (string targetEntity, string attribName, System.Collections.Generic.List<Microsoft.Xrm.Sdk.LocalizedLabel> locLabelList, int valueData, bool publishOnComplete);
member this.CreateOrUpdatePickListElement : string * string * System.Collections.Generic.List<Microsoft.Xrm.Sdk.LocalizedLabel> * int * bool -> bool
Public Function CreateOrUpdatePickListElement (targetEntity As String, attribName As String, locLabelList As List(Of LocalizedLabel), valueData As Integer, publishOnComplete As Boolean) As Boolean

Parameters

targetEntity
String String String String

Entity Name to Target

attribName
String String String String

Attribute Name on the Entity

locLabelList
List<LocalizedLabel>

List of Localized Labels

valueData
Int32 Int32 Int32 Int32

integer Value

publishOnComplete
Boolean Boolean Boolean Boolean

Publishes the Update to the Live system.. note this is a time consuming process.. if you are doing a batch up updates, call PublishEntity Separately when you are finished.

Returns

true on success, on fail check last error.

Remarks

Applies to