getCustomAction
カスタムコンポーネントを使用して、カスタムクイックアクションにアクセスしてデータまたはメッセージを渡すことができます。
引数
| 名前 | 型 | 説明 |
|---|---|---|
| actionName | string | アクセスするクイックアクションの名前。 |
actionName パラメーターは Salesforce オブジェクトで始まり、クイックアクション名が続きます。次に例を示します。
1actionName: "Case.MyCustomAction"サンプルコード
1actionApi.getCustomAction(args).then(function(customAction) {
2 if (customAction) {
3 customAction.subscribe(function(data) {
4 // Handle quick action message
5 });
6 customAction.publish({
7 message : "Hello Custom Action",
8 Param1 : "This is a parameter"
9 });
10 }
11}).catch(function(error) {
12 // We can't find that custom action.
13});