包含 Google Workspace Studio 中執行動作所產生的輸出變數。
僅適用於擴充 Google Workspace Studio 的 Google Workspace 外掛程式。
用法範例:
const variableDataMap = { "result": AddOnsResponseService.newVariableData() .addIntegerValue(100) }; const workflowAction = AddOnsResponseService.newReturnOutputVariablesAction() .setVariableDataMap(variableDataMap); const hostAppAction = AddOnsResponseService.newHostAppAction() .setWorkflowAction(workflowAction); const renderAction = AddOnsResponseService.newRenderActionBuilder() .setHostAppAction(hostAppAction) .build(); return renderAction;
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
add | Return | 新增以變數名稱做為鍵的變數資料,如果鍵已存在,系統會覆寫值。 |
set | Return | 將已執行的工作流程動作記錄,設定為工作流程活動動態消息中的使用者。 |
set | Return | 設定以變數名稱做為索引鍵的變數資料對應,如果索引鍵已存在,則會覆寫值。 |
內容詳盡的說明文件
addVariableData(key, value)
新增以變數名稱做為鍵的變數資料,如果鍵已存在,系統會覆寫值。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
key | String | 要擷取輸出變數資料的字串類型變數名稱。 |
value | Variable | 變數的資料。 |
回攻員
Return:這個傳回輸出變數動作,用於串鏈。
setLog(log)
將已執行的工作流程動作記錄,設定為工作流程活動動態消息中的使用者。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
log | Workflow | 已執行的工作流程動作的 Workflow 記錄。 |
回攻員
Return:這個傳回輸出變數動作,用於串鏈。
setVariableDataMap(variables)
設定以變數名稱做為索引鍵的變數資料對應,如果索引鍵已存在,則會覆寫值。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
variables | Object | 字串和變數資料的鍵/值組合集合。 |
回攻員
Return:這個傳回輸出變數動作,用於串連。