You need to sign in to do that
Don't have an account?
Nicole Nammour
Get Custom Labels Values Through Metadata api
Hello,
Is there a way to get custom labels (FullName and values) through metadata api?
Currently i can get only FullName, i can't retrieve the values.
Thanks,
Nicole
Is there a way to get custom labels (FullName and values) through metadata api?
Currently i can get only FullName, i can't retrieve the values.
Thanks,
Nicole
You can use the Metadat API method listMetadata specifying the type as "CustomLabel" to get the fullName of the label, and then use readMetadata passing the fullName as parameter to retrieve its value.
Good Luck
All Answers
queryRecord.type = "CustomLabel";
foreach(metadata.FileProperties fileProperty in fileProperties){
......
}
But fileProperty allows me to get only the fullName of the custom label, and not its value.
Is there a way to get both fullName and value of the custom label?
Thanks in advance,
https://github.com/BhawaniSharma/apex-mdapi
Is there any idea how to get the custom labels? (Not necessary using the metadata api)
I appreciate your help,
Nicole
You can use the Metadat API method listMetadata specifying the type as "CustomLabel" to get the fullName of the label, and then use readMetadata passing the fullName as parameter to retrieve its value.
Good Luck