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 Answer 1

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.

4
  • 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, 2014 at 11:15
  • 1
    @onurvarrrr Can you please let me know how did you get that working??
    – Neha Patil
    May 13, 2015 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, 2015 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, 2017 at 2:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .