Del via


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

 

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

  • 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