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

Newer Version Available

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

AppMenu

Salesforce アプリケーションドロップダウンメニューまたは Salesforce for Android、Salesforce for iOS、Salesforce モバイル Web に表示されるナビゲーションメニューの項目のリストを返します。

構文

URI
Salesforce アプリケーションドロップダウンメニュー項目のリストを返すには、URI に
/services/data/vXX.X/appMenu/AppSwitcher/ を使用します。
Salesforce for Android、Salesforce for iOS、Salesforce モバイル Web のナビゲーションメニュー項目のリストを返すには、URI に /services/data/vXX.X/appMenu/Salesforce1/ を使用します。
適用開始バージョン
29.0
形式
JSON、XML
HTTP のメソッド
GET、HEAD
認証
Authorization: Bearer token
リクエストボディ
なし
要求パラメータ
不要

例

appMenu の種別の取得
1curl https://MyDomainName.my.salesforce.com/services/data/v55.0/appMenu/ -H "Authorization: Bearer token"
/vXX.X/appMenu/AppSwitcher/ のレスポンスボディの例
1{
2  "appMenuItems" : [ {
3    "type" : "Tabset",
4    "content" : null,
5    "icons" : null,
6    "colors" : null,
7    "label" : "Sales",
8    "url" : "/home/home.jsp?tsid=02uxx00000056Sq"
9  }, {
10    "type" : "Tabset",
11    "content" : null,
12    "icons" : null,
13    "colors" : null,
14    "label" : "Service",
15    "url" : "/home/home.jsp?tsid=02uxx00000056Sr"
16  }, {
17    "type" : "Tabset",
18    "content" : null,
19    "icons" : null,
20    "colors" : null,
21    "label" : "Marketing",
22    "url" : "/home/home.jsp?tsid=02uxx00000056St"
23  }, {
24    "type" : "Tabset",
25    "content" : null,
26    "icons" : null,
27    "colors" : null,
28    "label" : "Salesforce Chatter",
29    "url" : "/home/home.jsp?tsid=02uxx00000056Su"
30  }, {
31    "type" : "Tabset",
32    "content" : null,
33    "icons" : null,
34    "colors" : null,
35    "label" : "Community",
36    "url" : "/home/home.jsp?tsid=02uxx00000056Sw"
37  }, {
38    "type" : "Tabset",
39    "content" : null,
40    "icons" : null,
41    "colors" : null,
42    "label" : "App Launcher",
43    "url" : "/app/mgmt/applauncher/appLauncher.apexp?tsid=02uxx00000056Sx"
44  } ]
45}
/vXX.X/appMenu/Salesforce1/ のレスポンスボディの例
1{
2  "appMenuItems" : [ {
3    "type" : "Standard.Search",
4    "content" : null,
5    "icons" : null,
6    "colors" : null,
7    "label" : "Smart Search Items",
8    "url" : "/search"
9  }, {
10    "type" : "Standard.MyDay",
11    "content" : null,
12    "icons" : null,
13    "colors" : null,
14    "label" : "Today",
15    "url" : "/myDay"
16  }, {
17    "type" : "Standard.Tasks",
18    "content" : null,
19    "icons" : null,
20    "colors" : null,
21    "label" : "Tasks",
22    "url" : "/tasks"
23  }, {
24    "type" : "Standard.Dashboards",
25    "content" : null,
26    "icons" : null,
27    "colors" : null,
28    "label" : "Dashboards",
29    "url" : "/dashboards"
30  }, {
31    "type" : "Tab.flexiPage",
32    "content" : "MySampleFlexiPage",
33    "icons" : [ {
34      "contentType" : "image/png",
35      "width" : 32,
36      "height" : 32,
37      "theme" : "theme3",
38      "url" : "http://myorg.com/img/icon/custom51_100/bell32.png"
39    }, {
40      "contentType" : "image/png",
41      "width" : 16,
42      "height" : 16,
43      "theme" : "theme3",
44      "url" : "http://myorg.com/img/icon/custom51_100/bell16.png"
45    }, {
46      "contentType" : "image/svg+xml",
47      "width" : 0,
48      "height" : 0,
49      "theme" : "theme4",
50      "url" : "http://myorg.com/img/icon/t4/custom/custom53.svg"
51    }, {
52      "contentType" : "image/png",
53      "width" : 60,
54      "height" : 60,
55      "theme" : "theme4",
56      "url" : "http://myorg.com/img/icon/t4/custom/custom53_60.png"
57    }, {
58      "contentType" : "image/png",
59      "width" : 120,
60      "height" : 120,
61      "theme" : "theme4",
62      "url" : "http://myorg.com/img/icon/t4/custom/custom53_120.png"
63    } ],
64    "colors" : [ {
65      "context" : "primary",
66      "color" : "FC4F59",
67      "theme" : "theme4"
68    }, {
69      "context" : "primary",
70      "color" : "FC4F59",
71      "theme" : "theme3"
72    } ],
73    "label" : "My App Home Page",
74    "url" : "/servlet/servlet.Integration?lid=01rxx0000000Vsd&ic=1"
75  }, {
76    "type" : "Tab.apexPage",
77    "content" : "/apex/myapexpage",
78    "icons" : [ {
79      "contentType" : "image/png",
80      "width" : 32,
81      "height" : 32,
82      "theme" : "theme3",
83      "url" : "http://myorg.com/img/icon/cash32.png"
84    }, {
85      "contentType" : "image/png",
86      "width" : 16,
87      "height" : 16,
88      "theme" : "theme3",
89      "url" : "http://myorg.com/img/icon/cash16.png"
90    }, {
91      "contentType" : "image/svg+xml",
92      "width" : 0,
93      "height" : 0,
94      "theme" : "theme4",
95      "url" : "http://myorg.com/img/icon/t4/custom/custom41.svg"
96    }, {
97      "contentType" : "image/png",
98      "width" : 60,
99      "height" : 60,
100      "theme" : "theme4",
101      "url" : "http://myorg.com/img/icon/t4/custom/custom41_60.png"
102    }, {
103      "contentType" : "image/png",
104      "width" : 120,
105      "height" : 120,
106      "theme" : "theme4",
107      "url" : "http://myorg.com/img/icon/t4/custom/custom41_120.png"
108    } ],
109    "colors" : [ {
110      "context" : "primary",
111      "color" : "3D8D8D",
112      "theme" : "theme4"
113    }, {
114      "context" : "primary",
115      "color" : "3D8D8D",
116      "theme" : "theme3"
117    } ],
118    "label" : "label",
119    "url" : "/servlet/servlet.Integration?lid=01rxx0000000Vyb&ic=1"
120  } ]
121}