CrmServiceClient.CreateOrUpdatePickListElement Method (String, String, List<LocalizedLabel>, Int32, Boolean)
Applies To: Dynamics CRM 2015
Adds an option to a pick list on an entity.
Namespace: Microsoft.Xrm.Tooling.Connector
Assembly: Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)
Syntax
public bool CreateOrUpdatePickListElement(
string targetEntity,
string attribName,
List<LocalizedLabel> locLabelList,
int valueData,
bool publishOnComplete
)
public:
bool CreateOrUpdatePickListElement(
String^ targetEntity,
String^ attribName,
List<LocalizedLabel^>^ locLabelList,
int valueData,
bool publishOnComplete
)
member CreateOrUpdatePickListElement :
targetEntity:string *
attribName:string *
locLabelList:List<LocalizedLabel> *
valueData:int *
publishOnComplete: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
Type: System.StringEntity Name to Target
attribName
Type: System.StringAttribute Name on the Entity
locLabelList
Type: System.Collections.Generic.List<LocalizedLabel>List of Localized Labels
valueData
Type: System.Int32integer Value
publishOnComplete
Type: System.BooleanPublishes 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.
Return Value
Type: System.Boolean
true on success, on fail check last error.
See Also
CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright