ExecutionResponse

  • ExecutionResponse represents the return value of a function executed using the Apps Script API.

  • Upon successful script function return, the response body'sresponse field holds the ExecutionResponse object.

  • Theresult field within ExecutionResponse contains the script function's return value in a specificValue format.

  • 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'sresponse field contains thisExecutionResponse object.

JSON representation
{"result":value}
Fields
result

value (Value format)

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 aDocument or aCalendar); they can only return primitive types such as astring,number,array,object, orboolean.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.