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

Themes

Salesforce アプリケーションのテーマで使用するアイコンと色のリストを取得します。テーマ情報は、Salesforce UI のアイコンと色を使用する組織内のオブジェクトに提供されます。

構文

URI
/vXX.X/theme
適用開始バージョン
29.0
形式
JSON、XML
HTTP メソッド
GET
認証
Authorization: Bearer token
リクエストボディ
None
要求パラメータ
なし
応答データ
テーマ項目の配列。各テーマ項目には次の項目が含まれます。
名前 説明
colors array テーマの色の配列。
icons array テーマアイコンの配列。
name string テーマの色とアイコンが関連付けられるオブジェ��トの名前。
各テーマの色には次の項目が含まれます。
名前 説明
color string Web 色の RGB 形式で示される色 (00FF00 など)。
context string オブジェクトでその色がメインの色 (primary) であるかどうかを決定する色のコンテキスト。
theme string
関連付けられたテーマ。値には、次のものがあります。
  • theme2: Spring '10 より前に使用されていた Salesforce テーマ
  • theme3: Spring '10 で導入された現在の Salesforce テーマ
  • theme4: Winter '14 で導入されたモバイルタッチスクリーンバージョンの Salesforce テーマ
  • custom: カスタムアイコンに関連付けられたテーマ
各テーマアイコンには次の項目が含まれます。
名前 説明
contentType string アイコンのコンテンツタイプは、「image/png」などです。
height number アイコンの高さ (ピクセル単位)。アイコンのコンテンツタイプが SVG タイプである場合、高さと幅の値は使用されません。
theme string
関連付けられたテーマ。値には、次のものがあります。
  • theme2: Spring '10 より前に使用されていた Salesforce テーマ
  • theme3: Spring '10 で導入された現在の Salesforce テーマ
  • theme4: Winter '14 で導入されたモバイルタッチスクリーンバージョンの Salesforce テーマ
  • custom: カスタムアイコンに関連付けられたテーマ
url string このアイコンの完全修飾 URL。
width number アイコンの幅 (ピクセル単位)。アイコンのコンテンツタイプが SVG タイプである場合、高さと幅の値は使用されません。

services/data/v29.0/theme の要求を使用した JSON 応答の例を次に示します。

1{ 
2    "themeItems" : [ 
3    { 
4        "name" : "Merchandise__c", 
5        "icons" : [ 
6        { 
7            "contentType" : "image/png", 
8            "width" : 32, 
9            "url" : "https://na1.salesforce.com/img/icon/computer32.png", 
10            "height" : 32, 
11            "theme" : "theme3" 
12        }, 
13        { 
14            "contentType" : "image/png", 
15            "width" : 16, 
16            "url" : "https://na1.salesforce.com/img/icon/computer16.png", 
17            "height" : 16, 
18            "theme" : "theme3" 
19        } ], 
20        "colors" : [ 
21        { 
22            "context" : "primary", 
23            "color" : "6666CC", 
24            "theme" : "theme3" 
25        }, 
26        { 
27            "context" : "primary", 
28            "color" : "66895F", 
29            "theme" : "theme4" 
30        }, 
31    ...
32    }
33...
34}