この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

オブジェクトの項目と他のメタデータを取得する

各項目、URL、および子リレーションに関する情報を含む、オブジェクトのすべてのメタデータを取得するには、sObject Describe リソースを使用します。
1https://yourInstance.salesforce.com/services/data/v20.0/sobjects/Account/describe/ -H "Authorization: Bearer token"
リクエストボディの例
不要
レスポンスボディの例
1{
2  "name" : "Account",
3  "fields" :
4  [
5    {
6      "length" : 18,
7      "name" : "Id",
8      "type" : "id",
9      "defaultValue" : {    "value" : null  },
10      "updateable" : false,
11      "label" : "Account ID",
12      ...
13    },
14
15    ...
16
17  ],
18
19
20  "updateable" : true,
21  "label" : "Account",
22  "keyPrefix" : "001",
23  "custom" : false,
24
25  ...
26
27  "urls" :
28  {
29    "uiEditTemplate" : "https://https://yourInstance.salesforce.com/{ID}/e",
30    "sobject" : "/services/data/v20.0/sobjects/Account",
31    "uiDetailTemplate" : "https://https://yourInstance.salesforce.com/{ID}",
32    ...
33  },
34
35  "childRelationships" :
36  [
37    {
38      "field" : "ParentId",
39      "deprecatedAndHidden" : false,
40      ...
41    }, 
42
43    ....
44
45  ],
46
47  "createable" : true,
48  "customSetting" : false,
49  ...
50}