Salesforce Fact #475 | Retrieve custom label from org

While retrieving custom label from org, if we specify particular ones in the members tag then the metadata type name is CustomLabel. For example,

    <types>

        <members>Input_Message</members>

        <members>AccountType</members>

        <name>CustomLabel</name>

    </types>

But while retrieving all the custom labels from the org, the metadata type name can be either CustomLabel or CustomLabels. Like this,

    <types>

        <members>*</members>

        <name>CustomLabel</name>

    </types>

OR

    <types>

        <members>*</members>

        <name>CustomLabels</name>

    </types>


Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow