Standard Invocable Actions
静的に呼び出し可能なアクションのリストを返します。また、アクション種別ごとに基本情報を取得することもできます。
このリソースは REST API バージョン 32.0 以降で使用できます。
構文
- URI
- 標準アクションのリストを取得する場合:
- /vXX.X/actions/standard
- 形式
- JSON、XML
- HTTP メソッド
- GET、HEAD、POST
- 認証
- Authorization: Bearer token
- パラメータ
- なし
- メモ
- Chatter への投稿アクションでは、本文の投稿で特殊な形式を使用する次の機能がサポートされています。
- @[<id>] を使用する @メンション
- #[<topicString>] を使用するトピック
例
- 現在の組織の標準アクションのリストの取得
-
1/services/data/v32.0/actions/standard - JSON レスポンスボディ
-
1{ 2 3 "actions" : [ { 4 5 "label" : "Submit for Approval", 6 7 "name" : "submit", 8 9 "type" : "SUBMITAPPROVAL" 10 11 }, { 12 13 "label" : "Post to Chatter", 14 15 "name" : "chatterPost", 16 17 "type" : "CHATTERPOST" }, 18 19 }, { 20 21 "label" : "Send Email", 22 23 "name" : "emailSimple", 24 25 "type" : "EMAILSIMPLE" 26 27 } ] 28 29} - 1 つの標準アクションの属性の取得 (例: emailSimple)
- /services/data/v32.0/actions/standard/emailSimple
- JSON レスポンスボディ
-
1{ 2 3"description" : "Send an email where you specify the subject, body, and recipients.", 4 5"inputs" : [ { 6 7 "byteLength" : 0, 8 9 "description" : "Optional. The email recipients specified as a comma-separated list.", 10 11 "label" : "Email Addresses (comma-separated)", 12 13 "maxOccurs" : 1, 14 15 "name" : "emailAddresses", 16 17 "picklistValues" : null, 18 19 "required" : false, 20 21 "sobjectType" : null, 22 23 "type" : "STRING" 24 25}, { 26 27 "byteLength" : 0, 28 29 "description" : "Optional. The email recipients specified as a collection of Strings.", 30 31 "label" : "Email Addresses (collection)", 32 33 "maxOccurs" : 5, 34 35 "name" : "emailAddressesArray", 36 37 "picklistValues" : null, 38 39 "required" : false, 40 41 "sobjectType" : null, 42 43 "type" : "STRING" 44 45}, { 46 47 "byteLength" : 0, 48 49 "description" : "Optional. Who the email is from. Defaults to the current user.", 50 51 "label" : "Sender Type", 52 53 "maxOccurs" : 1, 54 55 "name" : "senderType", 56 57 "picklistValues" : null, 58 59 "required" : false, 60 61 "sobjectType" : null, 62 63 "type" : "STRING" 64 65}, { 66 67 "byteLength" : 0, 68 69 "description" : "Required. The email's subject.", 70 71 "label" : "Subject", 72 73 "maxOccurs" : 1, 74 75 "name" : "emailSubject", 76 77 "picklistValues" : null, 78 79 "required" : true, 80 81 "sobjectType" : null, 82 83 "type" : "STRING" 84 85}, { 86 87 "byteLength" : 0, 88 89 "description" : "Required. The body of the email in plain text.", 90 91 "label" : "Body", 92 93 "maxOccurs" : 1, 94 95 "name" : "emailBody", 96 97 "picklistValues" : null, 98 99 "required" : true, 100 101 "sobjectType" : null, 102 103 "type" : "TEXTAREA" 104 105} ], 106 107 "label" : "Send Email", 108 109 "name" : "emailSimple", 110 111 "outputs" : [ ], 112 113 "standard" : true, 114 115 "targetEntityName" : null, 116 117 "type" : "EMAILSIMPLE" 118 119}