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

Record View Search

レコードを検索し、レコードタイプでグループ化されたリストビューオブジェクトのコレクションを取得します。結果には、レコードデータおよび検索リストビューを記述するメタデータが含まれます。
使用可能なエディション: Unlimited Edition、Enterprise Edition、および Developer Edition
リソース
1/connect/records
適用開始バージョン
30.0
Chatter が必要かどうか
いいえ
HTTP メソッド
GET または HEAD
GET の要求パラメータ
プロパティ 型 説明 必須項目/省略可能 使用可能なバージョン
maxRecordsPerType Integer リストビューごとに返す最大行数 (各リストビューに 1 オブジェクトが含まれます)。最小値は 1 です。最大値は、25 です。デフォルト値は 5 です。 省略可能 30.0
q String 検索する文字列を指定します。検索文字列にはワイルドカード文字を除いて 2 文字以上が含まれている必要があります。「ワイルドカード」を参照してください。 必須項目 30.0
レスポンスボディ
Record Search Results
使用方法
このリソースではホワイトリストを使用します。要求されたオブジェクト種別がホワイトリストに含まれていない場合、要求は 400 応答で "INVALID_TYPE" エラーコードを返します。次のオブジェクトがサポートされます。
オブジェクト種別 使用可能
Custom Objects 30.0
Account 30.0
Campaign 30.0
Case 30.0
CollaborationGroup 30.0
Contact 30.0
ContentDocument 30.0
ContentVersion 30.0
Contract 30.0
Dashboard 30.0
Event 30.0
Lead 30.0
LiveChatTranscript 30.0
Opportunity 30.0
OpportunityLineItem 30.0
Product 30.0
ServiceContract 30.0
Solution 30.0
Task 30.0
User 30.0
例
次の GET 要求は、項目に文字「th」と追加の文字が含まれるレコードを検索します。
1GET /connect/records?q=th*
次にレスポンスボディを示します。
1{
2  "resultGroups" : [ {
3    "definition" : {
4      "columns" : [ {
5        "dataType" : "Name",
6        "fieldId" : "Name",
7        "label" : "Account Name",
8        "name" : "Name"
9      }, {
10        "dataType" : "Text",
11        "fieldId" : "Site",
12        "label" : "Account Site",
13        "name" : "Site"
14      }, {
15        "dataType" : "Phone",
16        "fieldId" : "Phone",
17        "label" : "Account Phone",
18        "name" : "Phone"
19      }, {
20        "dataType" : "Reference",
21        "fieldId" : "OwnerId",
22        "label" : "Owner ID",
23        "name" : "OwnerId"
24      } ],
25      "label" : "Accounts",
26      "objectType" : {
27        "fieldId" : null,
28        "type" : "Account"
29      },
30      "rowLimit" : 5,
31      "sortColumns" : [ ]
32    },
33    "foundMoreRecords" : false,
34    "minRecordsFound" : 3,
35    "records" : [ {
36      "fields" : [ {
37        "fields" : [ {
38          "label" : "Account Name",
39          "text" : "Baghdad Theater",
40          "type" : "Text"
41        } ],
42        "label" : "Account Name",
43        "text" : "Baghdad Theater",
44        "type" : "Name"
45      }, {
46        "label" : "Account Site",
47        "text" : null,
48        "type" : "Text"
49      }, {
50        "label" : "Phone",
51        "text" : null,
52        "type" : "Phone"
53      }, {
54        "label" : "Account Owner",
55        "reference" : {
56          "id" : "005D0000001LL8OIAW",
57          "motif" : {
58            "color" : "20aeb8",
59            "largeIconUrl" : "/img/icon/profile64.png",
60            "mediumIconUrl" : "/img/icon/profile32.png",
61            "smallIconUrl" : "/img/icon/profile16.png"
62          },
63          "mySubscription" : null,
64          "name" : "Deanna Li",
65          "recordViewUrl" : "/services/data/v32.0/connect/records/005D0000001LL8OIAW",
66          "type" : "User",
67          "url" : "/services/data/v32.0/chatter/users/005D0000001LL8OIAW"
68        },
69        "text" : "Deanna Li",
70        "type" : "Reference"
71      } ],
72      "id" : "001D000000I8elzIAB",
73      "motif" : {
74        "color" : "236FBD",
75        "largeIconUrl" : "/img/icon/accounts64.png",
76        "mediumIconUrl" : "/img/icon/accounts32.png",
77        "smallIconUrl" : "/img/icon/accounts16.png"
78      },
79      "mySubscription" : null,
80      "name" : "Baghdad Theater",
81      "recordViewUrl" : "/services/data/v32.0/connect/records/001D000000I8elzIAB",
82      "type" : "Account",
83      "url" : "/services/data/v32.0/connect/records/001D000000I8elzIAB"
84    }, {
85      "fields" : [ {
86        "fields" : [ {
87          "label" : "Account Name",
88          "text" : "Hawthorne Theater",
89          "type" : "Text"
90        } ],
91        "label" : "Account Name",
92        "text" : "Hawthorne Theater",
93        "type" : "Name"
94      }, {
95        "label" : "Account Site",
96        "text" : null,
97        "type" : "Text"
98      }, {
99        "label" : "Phone",
100        "text" : null,
101        "type" : "Phone"
102      }, {
103        "label" : "Account Owner",
104        "reference" : {
105          "id" : "005D0000001LL8OIAW",
106          "motif" : {
107            "color" : "20aeb8",
108            "largeIconUrl" : "/img/icon/profile64.png",
109            "mediumIconUrl" : "/img/icon/profile32.png",
110            "smallIconUrl" : "/img/icon/profile16.png"
111          },
112          "mySubscription" : null,
113          "name" : "Deanna Li",
114          "recordViewUrl" : "/services/data/v32.0/connect/records/005D0000001LL8OIAW",
115          "type" : "User",
116          "url" : "/services/data/v32.0/chatter/users/005D0000001LL8OIAW"
117        },
118        "text" : "Deanna Li",
119        "type" : "Reference"
120      } ],
121      "id" : "001D000000I8eltIAB",
122      "motif" : {
123        "color" : "236FBD",
124        "largeIconUrl" : "/img/icon/accounts64.png",
125        "mediumIconUrl" : "/img/icon/accounts32.png",
126        "smallIconUrl" : "/img/icon/accounts16.png"
127      },
128      "mySubscription" : null,
129      "name" : "Hawthorne Theater",
130      "recordViewUrl" : "/services/data/v32.0/connect/records/001D000000I8eltIAB",
131      "type" : "Account",
132      "url" : "/services/data/v32.0/connect/records/001D000000I8eltIAB"
133    }, {
134      "fields" : [ {
135        "fields" : [ {
136          "label" : "Account Name",
137          "text" : "The Whole Bowl",
138          "type" : "Text"
139        } ],
140        "label" : "Account Name",
141        "text" : "The Whole Bowl",
142        "type" : "Name"
143      }, {
144        "label" : "Account Site",
145        "text" : null,
146        "type" : "Text"
147      }, {
148        "label" : "Phone",
149        "text" : null,
150        "type" : "Phone"
151      }, {
152        "label" : "Account Owner",
153        "reference" : {
154          "id" : "005D0000001LL8OIAW",
155          "motif" : {
156            "color" : "20aeb8",
157            "largeIconUrl" : "/img/icon/profile64.png",
158            "mediumIconUrl" : "/img/icon/profile32.png",
159            "smallIconUrl" : "/img/icon/profile16.png"
160          },
161          "mySubscription" : null,
162          "name" : "Deanna Li",
163          "recordViewUrl" : "/services/data/v32.0/connect/records/005D0000001LL8OIAW",
164          "type" : "User",
165          "url" : "/services/data/v32.0/chatter/users/005D0000001LL8OIAW"
166        },
167        "text" : "Deanna Li",
168        "type" : "Reference"
169      } ],
170      "id" : "001D000000I8eloIAB",
171      "motif" : {
172        "color" : "236FBD",
173        "largeIconUrl" : "/img/icon/accounts64.png",
174        "mediumIconUrl" : "/img/icon/accounts32.png",
175        "smallIconUrl" : "/img/icon/accounts16.png"
176      },
177      "mySubscription" : null,
178      "name" : "The Whole Bowl",
179      "recordViewUrl" : "/services/data/v32.0/connect/records/001D000000I8eloIAB",
180      "type" : "Account",
181      "url" : "/services/data/v32.0/connect/records/001D000000I8eloIAB"
182    } ]
183  }, {
184    "definition" : {
185      "columns" : [ {
186        "dataType" : "Name",
187        "fieldId" : "Name",
188        "label" : "Full Name",
189        "name" : "Name"
190      }, {
191        "dataType" : "Text",
192        "fieldId" : "Title",
193        "label" : "Title",
194        "name" : "Title"
195      }, {
196        "dataType" : "Phone",
197        "fieldId" : "Phone",
198        "label" : "Phone",
199        "name" : "Phone"
200      }, {
201        "dataType" : "Text",
202        "fieldId" : "Company",
203        "label" : "Company",
204        "name" : "Company"
205      }, {
206        "dataType" : "Email",
207        "fieldId" : "Email",
208        "label" : "Email",
209        "name" : "Email"
210      }, {
211        "dataType" : "Picklist",
212        "fieldId" : "Status",
213        "label" : "Status",
214        "name" : "Status"
215      } ],
216      "label" : "Leads",
217      "objectType" : {
218        "fieldId" : null,
219        "type" : "Lead"
220      },
221      "rowLimit" : 5,
222      "sortColumns" : [ ]
223    },
224    "foundMoreRecords" : false,
225    "minRecordsFound" : 1,
226    "records" : [ {
227      "fields" : [ {
228        "fields" : [ {
229          "label" : "Salutation",
230          "text" : null,
231          "type" : "Picklist"
232        }, {
233          "label" : "First Name",
234          "text" : null,
235          "type" : "Text"
236        }, {
237          "label" : "Last Name",
238          "text" : null,
239          "type" : "Text"
240        } ],
241        "label" : "Name",
242        "text" : "Thea",
243        "type" : "Name"
244      }, {
245        "label" : "Title",
246        "text" : null,
247        "type" : "Text"
248      }, {
249        "label" : "Phone",
250        "text" : null,
251        "type" : "Phone"
252      }, {
253        "label" : "Company",
254        "text" : "Key Shoppe",
255        "type" : "Text"
256      }, {
257        "label" : "Email",
258        "text" : null,
259        "type" : "Email"
260      }, {
261        "label" : "Lead Status",
262        "text" : "Open - Not Contacted",
263        "type" : "Picklist"
264      } ],
265      "id" : "00QD000000GGUyqMAH",
266      "motif" : {
267        "color" : "E39321",
268        "largeIconUrl" : "/img/icon/leads64.png",
269        "mediumIconUrl" : "/img/icon/leads32.png",
270        "smallIconUrl" : "/img/icon/leads16.png"
271      },
272      "mySubscription" : null,
273      "name" : "Thea, Key Shoppe",
274      "recordViewUrl" : "/services/data/v32.0/connect/records/00QD000000GGUyqMAH",
275      "type" : "Lead",
276      "url" : "/services/data/v32.0/connect/records/00QD000000GGUyqMAH"
277    } ]
278  } ],
279  "url" : "/services/data/v32.0/connect/records?q=th*"
280}