Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
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 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.String- Entity Name to Target 
- attribName 
 Type: System.String- Attribute Name on the Entity 
- locLabelList 
 Type: System.Collections.Generic.List<LocalizedLabel>- List of Localized Labels 
- valueData 
 Type: System.Int32- integer Value 
- publishOnComplete 
 Type: System.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. 
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
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright