ExecutionResponse
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
شی ای که مقدار بازگشتی یک تابع اجرا شده با استفاده از Apps Script API را ارائه می دهد. اگر تابع اسکریپت با موفقیت برگردد، فیلد response
بدنه پاسخ حاوی این شی ExecutionResponse
است.
نمایندگی JSON |
---|
{
"result": value
} |
فیلدها |
---|
result | value ( Value format) مقدار بازگشتی تابع اسکریپت. نوع با نوع شیء برگشتی در Apps Script مطابقت دارد. توابعی که با استفاده از Apps Script API نامیده می شوند، نمی توانند اشیاء خاص Apps Script (مانند یک Document یا یک Calendar ) را برگردانند. آنها فقط می توانند انواع اولیه مانند string ، number ، array ، object یا boolean را برگردانند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eExecutionResponse\u003c/code\u003e objects represent the results of Apps Script functions executed via the Apps Script API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eresult\u003c/code\u003e field within the \u003ccode\u003eExecutionResponse\u003c/code\u003e holds the function's return value, limited to basic types like string, number, array, object, or boolean.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful script execution leads to the \u003ccode\u003eExecutionResponse\u003c/code\u003e being placed in the \u003ccode\u003eresponse\u003c/code\u003e field of the response body.\u003c/p\u003e\n"]]],[],null,["# ExecutionResponse\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAn 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](/apps-script/api/reference/rest/v1/scripts/run#body.Operation.FIELDS.response) field contains this `ExecutionResponse` object.\n\n| JSON representation |\n|-----------------------------|\n| ``` { \"result\": value } ``` |\n\n| Fields ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `result` | `value (`[Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.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 a `Document` or a `Calendar`); they can only return primitive types such as a `string`, `number`, `array`, `object`, or `boolean`. |"]]