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

痴心易碎 提交于 2019-12-11 05:07:49

问题


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.



来源:https://stackoverflow.com/questions/50923733/how-to-get-all-fields-from-a-module-sugarcrm-7-api-v10

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!