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

getAvailableActionFields

カスタムコンポーネントを使用して、レコードページの特定のアクションで使用可能な項目のリストを取得できます。

引数

名前 説明
actionName string アクセスするクイックアクションの名前。

actionName パラメータは Salesforce オブジェクトで始まり、クイックアクション名が続きます。次に例を示します。

1actionName: "Case.LogACall"

サンプルコード

1getAvailableActionFields : function( cmp, event, helper) {
2        var actionAPI = cmp.find("quickActionAPI");
3        var args = {actionName :"Case.LogACall", entityName:"Case" };
4        actionAPI.getAvailableActionFields(args).then(function(result){
5            //All available action fields shown for Log a Call
6        }).catch(function(e){
7            if(e.errors){
8                //If the specified action isn't found on the page, show an error message in the my component 
9            }
10        });
11    }

応答

Promise を返します。成功すると、response オブジェクトになります。エラー応答では Promise は却下されます。

1success: true,
2fields:
3    {fieldName: "Subject", type: "textEnumLookup"}
4    {fieldName: "Description", type: "TextArea"}
5    {fieldName: "WhoId", type: "Lookup"},
6errors: []