Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetching custom label #7

Closed
mirajsameer opened this issue Jan 25, 2013 · 2 comments
Closed

fetching custom label #7

mirajsameer opened this issue Jan 25, 2013 · 2 comments

Comments

@mirajsameer
Copy link

Hi ,

Thanks for the great examples. Using the metadataretrieve page we can get the custom label name, But is it possible to get the value of the custom label??

Regards
Sam

@afawcett
Copy link
Contributor

Apologies for the delay in getting back to you. Yes this is possible via the Retrieve Page (note there is a known issue with this page that may cause it not to retrieve the first time, simply refresh the page and try again). I created a Test Custom Label and was able to retrieve it like so, via CustomLabel and also all of them via CustomLabels.

NOTE: That the Metadata API 'retrieve' call returns a zip file, hence some client processing is needed to help Apex decode this information. Note that you can use Label.test in Apex code, but unfortunately there is no generic way of doing this without going through the Metadata API.

Screen Shot 2013-01-31 at 02 07 33

Screen Shot 2013-01-31 at 02 09 10

@afawcett
Copy link
Contributor

Sam, I hope this helped you out. Please feel free to re-open the issue if not and I will try to help more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants