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
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 All,
I found solution for this. We have to call the API: /lang/:lang . This returns the Display labels
Hi All,
I found solution for this. We have to call the API: /lang/:lang . This returns the Display labels