CrmServiceClient.CreateOrUpdatePickListElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Name to Target
- attribName
- String
Attribute Name on the Entity
- locLabelList
- List<LocalizedLabel>
List of Localized Labels
- valueData
- Int32
integer Value
- publishOnComplete
- 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.