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

Newer Version Available

This content describes an older version of this product. View Latest

Compact Layouts

複数のオブジェクトの Compact Layouts のリストを返します。このリソースは REST API バージョン 31.0 以降で使用できます。
このリソースは、オブジェクトのセットの主 Compact Layouts を返します。オブジェクトのセットは、クエリパラメータを使用して指定します。一度に最大 100 個のオブジェクトを照会できます。

一括クエリでは、PersonAccount はサポートされていません。PersonAccount の主 Compact Layouts を取得する場合は、/services/data/v31.0/sobjects/Account/describe/compactLayouts/primaryPersonAccount から直接取得します。

メモ

構文

URI
/vXX.X/compactLayouts?q=オブジェクトリスト
適用開始バージョン
31.0
形式
JSON、XML
HTTP メソッド
GET
認証
Authorization: Bearer token
要求パラメータ
パラメータ 説明
q オブジェクトのカンマ区切りリスト。このリソースの応答で、このリスト内の各オブジェクトの主 Compact Layouts が返されます。

例

複数のオブジェクトの Compact Layouts の取得を要求します。
1/services/data/v31.0/compactLayouts?q=Account,Contact,CustomObj__c
複数のオブジェクトの Compact Layouts の応答
1{
2  "Account" : {
3    "actions" : [ {
4      "behavior" : null,
5      "content" : null,
6      "contentSource" : null,
7      "custom" : false,
8      "encoding" : null,
9      "height" : null,
10      "icons" : null,
11      "label" : "Call",
12      "menubar" : false,
13      "name" : "CallHighlightAction",
14      "overridden" : false,
15      "resizeable" : false,
16      "scrollbars" : false,
17      "showsLocation" : false,
18      "showsStatus" : false,
19      "toolbar" : false,
20      "url" : null,
21      "width" : null,
22      "windowPosition" : null
23    },
24    ...
25    "id" : "0AHD000000000AbOAI",
26    "label" : "Custom Account Compact Layout",
27    "name" : "Custom_Account_Compact_Layout"
28  },
29  "Contact" : {
30    "actions" : [ {
31      "behavior" : null,
32      "content" : null,
33      "contentSource" : null,
34      "custom" : false,
35      "encoding" : null,
36      "height" : null,
37      "icons" : null,
38      "label" : "Call",
39      "menubar" : false,
40      "name" : "CallHighlightAction",
41      "overridden" : false,
42      "resizeable" : false,
43      "scrollbars" : false,
44      "showsLocation" : false,
45      "showsStatus" : false,
46      "toolbar" : false,
47      "url" : null,
48      "width" : null,
49      "windowPosition" : null
50    },
51    ...
52    "id" : null,
53    "label" : "System Default",
54    "name" : "SYSTEM"
55  }
56  "CustomObj__c" : {
57    "actions" : [ {
58      "behavior" : null,
59      "content" : null,
60      "contentSource" : null,
61      "custom" : false,
62      "encoding" : null,
63      "height" : null,
64      "icons" : null,
65      "label" : "Call",
66      "menubar" : false,
67      "name" : "CallHighlightAction",
68      "overridden" : false,
69      "resizeable" : false,
70      "scrollbars" : false,
71      "showsLocation" : false,
72      "showsStatus" : false,
73      "toolbar" : false,
74      "url" : null,
75      "width" : null,
76      "windowPosition" : null
77    },
78    ...
79    "id" : null,
80    "imageItems" : null,
81    "label" : "System Default",
82    "name" : "SYSTEM"
83  }
84}