Class ReturnOutputVariablesAction
Stay organized with collections
Save and categorize content based on your preferences.
Contains output variables generated by the executed action in Google Workspace Studio.
Only available for Google Workspace add-ons that extend Google Workspace Studio.
Sample usage:
constvariableDataMap={ "result":AddOnsResponseService.newVariableData() .addIntegerValue(100) }; constworkflowAction=AddOnsResponseService.newReturnOutputVariablesAction() .setVariableDataMap(variableDataMap); consthostAppAction=AddOnsResponseService.newHostAppAction() .setWorkflowAction(workflowAction); constrenderAction=AddOnsResponseService.newRenderActionBuilder() .setHostAppAction(hostAppAction) .build(); returnrenderAction;
Methods
| Method | Return type | Brief description |
|---|---|---|
add | Return | Adds a variable data keyed by its variable name, a value is overwritten if the key already exists. |
set | Return | Sets the Log of the executed workflow action to the end user at Workflow's activity feed. |
set | Return | Sets the map of the variable data keyed by variable name, a value is overwritten if the key already exists. |
Detailed documentation
addVariableData(key, value)
Adds a variable data keyed by its variable name, a value is overwritten if the key already exists.
Parameters
| Name | Type | Description |
|---|---|---|
key | String | The variable name of string type to retrieve the output variable data. |
value | Variable | The data of the variable. |
Return
Return — This return output variables action, for chaining.
setLog(log)
Sets the Log of the executed workflow action to the end user at Workflow's activity feed.
Parameters
| Name | Type | Description |
|---|---|---|
log | Workflow | The Workflow log of the executed workflow action. |
Return
Return — This return output variables action, for chaining.
setVariableDataMap(variables)
Sets the map of the variable data keyed by variable name, a value is overwritten if the key already exists.
Parameters
| Name | Type | Description |
|---|---|---|
variables | Object | A collection of key-value pairs of string and variable data. |
Return
Return — This return output variables action, for chaining.