本文介绍了如何使用REST Api从Salesforce的字段中获取所有选择列表值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用REST API从salesforce中的字段获取所有选择列表值.有可能这样做吗?如果是,那该怎么办呢?
I am trying to get all picklist values from a field in salesforce using REST API. Is it possible to do that? If it is then how it can be done?
谢谢
拉吉.
推荐答案
这很简单.您需要访问类似于以下资源:/services/data/v26.0/sobjects/Opportunity/describe
(使用所需的任何对象),并且JSON响应将包含fields
节点:
It's very simple. You need to access resource similar to this: /services/data/v26.0/sobjects/Opportunity/describe
(use whichever object you want) and the JSON response will contain fields
node:
这篇关于如何使用REST Api从Salesforce的字段中获取所有选择列表值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!