Hello friends, In this post, you will see an example that helps you to get custom label data using SOQL query. So let's get started,

Query custom label using soql

Suppose you have a custom label with following details.

Then, you can use following query to retrieve data.

 Select Id,Name,Masterlabel,Value,IsProtected,Category,Language,ManageableState FROM ExternalString WHERE Name='TestLabel'

Output:

 

Hope you like this post, for any feedback or suggestions please feel free to comment. I would appreciate your feedback and suggestions.
Thank you.