Get labels of all the fields available for a module

Hello,

I have a requirement where I need to get the list of all fields available for a module. I am currently using this endpoint to get the data:

/rest/v11/metadata?type_filter=modules&module_filter=Contacts

Everything is working fine with this except the label. The response doesn't have anything that can be shown as a label for the user on our side.

'First Name' instead of 'first_name'.

Is there anything that can be done for this?

I have attached the response format I am getting.

Parents
  • /rest/v11/lang/en_us

    will give you all the labels for the whole application in English US.

    Change the language to what you need.

    get your results into an array $results and look for $results['mod_strings']['Contacts'] to get the labels for contacts.

    HTH

    FrancescaS

Reply
  • /rest/v11/lang/en_us

    will give you all the labels for the whole application in English US.

    Change the language to what you need.

    get your results into an array $results and look for $results['mod_strings']['Contacts'] to get the labels for contacts.

    HTH

    FrancescaS

Children