We're building a mobile app that uses Salesforce metadata retrieved through the REST API. One of the pieces of metadata we need are field labels, in the authenticated user's language.
For example, we want to display the Account Record Type (
RecordType.Name) so the label should be "Account Record Type" if the user's language is English or "Tipo de registro de cuenta" if the user's language is Spanish. These are the labels shown in the web interface:
The problem is that the REST API returns the label as "Record Type ID" or "Id. de tipo de registro" when describing the Account object:
Other standard lookup fields have a similar problem. "Parent Account" is "Parent Account ID" from the API.
Custom lookup fields don't have this problem. The label in the UI matches the label in the API.
Any suggestions for getting the correct label?