2

We are developing Native iOS app which is using Salesforce SDK.

Is there a way to fetch custom labels from Salesforce using SDK ? (like using RESTapi)

1

Not directly, no. The mobile sdk is missing the necessary functions to perform this retrieval of data. The reason why, is because custom labels are of available in the rest API. You would need access to the metadata API, which from looking at the source, doesn't appear to be available. As a workaround, you could create a custom rest API call to retrieve the labels via Apex Code.

  • Ok i got it working using MetaData Api. I'm using "retrieve" and "checkRetrieveStatus" methods to get custom labels, translations and overwrites. – Onur Var Sep 5 '14 at 11:15
  • 1
    @onurvarrrr Can you please let me know how did you get that working?? – Neha Patil May 13 '15 at 11:56
  • using Metadata API requeires Admin Access so we changed our approach. We are collecting data and packaging them into zip file and download it. – Onur Var Nov 13 '15 at 8:01
  • 1
    I've created an implementation using the Custom Rest Resource. You can see it here: salesforce.stackexchange.com/questions/29379/… – NSjonas Nov 21 '17 at 2:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.