Rest v10 metadata API does not show the label names ? however the v4's get_module_fields method pulls in the label information.
Is there an API which gives in the label information in v10.
Thanks
Divya
Rest v10 metadata API does not show the label names ? however the v4's get_module_fields method pulls in the label information.
Is there an API which gives in the label information in v10.
Thanks
Divya
Hi,
Can you try custom api and get field label?
In V10 you can request for the metadata and filter the result by the module name, if you are using PHP see this link https://community.sugarcrm.com/message/88332-re-get-all-fields-of-a-module?commentID=88332#comment-88342
If you need to do it on sidecar use this:
app.api.call('read','/rest/v10/metadata?type_filter=modules,fields&module_filter=Accounts');
to test the line above, go to sugar, open the chrome developer tools and in the console put:
var tt = App.api.call('read','/rest/v10/metadata?type_filter=modules,fields&module_filter=Accounts');
tt.xhr.success(function(res){console.log(res.modules.Accounts.fields.name);})
You get a response like:
In the vname key it's the label name
Hope this help
Regards
Hi,
Thank you for taking the time. The metadata api gives more info about sugarcrm's database. But I want information regarding the layout. For instance in v4 endpoint, we have the get_module_fields(). The following link says this api has been succeeded by a new version. where is the new version ?
Thank you for your help.
Regards
Divya
Hi All,
I found solution for this. We have to call the API: /lang/:lang . This returns the Display labels