如何从模块中获取所有字段 - SugarCRM 7+ api v10 [英] How to get all fields from a module - SugarCRM 7+ api v10

查看:30
本文介绍了如何从模块中获取所有字段 - SugarCRM 7+ api v10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用其 v10 api 获取 SugarCRM 中模块的每个字段?

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

在 rest v4 中,我们有 get_module_fields 来获取字段.

In rest v4 we had get_module_fields to fetch fields.

我的问题与这个问题基本相同

当我尝试 http://<sugarcrm>/rest/v10/metadata 时,邮递员告诉我需要启用 Javascript!

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

推荐答案

不知道为什么 Postman 说它需要 Javascript.也许是因为数据太多而无法显示为纯文本?您可以尝试通过将响应负载限制为您需要的模块来减少响应负载:

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:

例如对于帐户模块:/rest/v10/metadata?module_filter=Accounts&type_filter=modules

您可以在 responseData.modules..fields

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

在模块/过滤器请求的 fields 数组中提供所有字段的名称以接收其内容.

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

这篇关于如何从模块中获取所有字段 - SugarCRM 7+ api v10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆