获取Salesforce帐户字段 [英] Get Salesforce Account fields

查看:109
本文介绍了获取Salesforce帐户字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Salesforce API进行规范 我进行了很多搜索,但没有找到可以使用GET方法检索的字段列表 有人可以提供给我这个列表的链接吗?

I am doing the specifications using Salesforce API I searched so much but didn't find the list of fields that i could retrieve using GET method Someone could provide me the link that give me this list please ?

我刚刚找到了此链接 https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_get_field_values.htm

I just found this link https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_get_field_values.htm

谢谢

推荐答案

您需要使用描述"调用. 它将返回您所有对象的列表用户可以在组织中看到,并且其中包含链接如何获取有关帐户"上所有字段的详细信息. (您可以根据需要直接描述帐户,链接以可预测的方式构建)

You need to use a "describe" call. It'll return a list of all objects your user can see in the org and it'll include links how to get more detailed info about all fields on say Account. (you can jump straight to describing an Account if you want, the links are constructed in a predictable pattern)

描述"仅限于您的个人资料可以看到的内容,因此,如果个人资料在某些对象上缺少读取"复选框-不会显示在结果中.

"Describes" are limited to what your Profile can see so if the profile lacks the "Read" checkbox on some object - it won't appear in the results.

例如,转到 https://workbench.developerforce.com 并进行实验(从菜单中选择实用程序- > REST资源管理器)

Go to https://workbench.developerforce.com for example and experiment (from menu select Utilities -> REST explorer)

  1. 列出所有可用API的基本调用:/services/data/v41.0
  2. 所有sObjects&的列表链接以获取有关它们的更多信息:/services/data/v41.0/sobjects
  3. 有关帐户的详细信息,包括字段:/services/data/v41.0/sobjects/Account/describe
  1. Base call that lists all APIs available to you: /services/data/v41.0
  2. List of all sObjects & links to obtain more info about them: /services/data/v41.0/sobjects
  3. Detailed info about Account, including fields: /services/data/v41.0/sobjects/Account/describe

这篇关于获取Salesforce帐户字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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