AI-generated Key Takeaways
-
ExecutionResponse represents the return value of a function executed using the Apps Script API.
-
Upon successful script function return, the response body's
responsefield holds the ExecutionResponse object. -
The
resultfield within ExecutionResponse contains the script function's return value in a specificValueformat. -
Only primitive types like string, number, array, object, or boolean can be returned by functions called using the Apps Script API.
An object that provides the return value of a function executed using the Apps Script API. If the script function returns successfully, the response body's response field contains this ExecutionResponse object.
| JSON representation |
|---|
{ "result": value } |
| Fields | |
|---|---|
result |
The return value of the script function. The type matches the object type returned in Apps Script. Functions called using the Apps Script API cannot return Apps Script-specific objects (such as a |