-->

How to get all fields from a module - SugarCRM 7+

2019-08-08 17:24发布

问题:

How to fetch every fields of a module in SugarCRM with its v10 api ?

In rest v4 we had get_module_fields to fetch fields.

My question is basically the same as this one

When I try http://<sugarcrm>/rest/v10/metadata, Postman tells me that I need to enable Javascript !

回答1:

Not sure why Postman says it needs Javascript. Maybe because the data is too much to display as plain-text? You could try to reduce the response payload by limiting it to the module you need:

e.g. for Accounts module: /rest/v10/metadata?module_filter=Accounts&type_filter=modules

You can find the list of fields in responseData.modules.<module>.fields

Supply all the fields' names in the fields array of your module/filter requests to receive their contents.



标签: sugarcrm