Tổng quan về các mẫu Apps Script
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Phần này cung cấp các hướng dẫn nhanh, giải pháp và lớp học lập trình về Apps Script.
Sau đây là định nghĩa của từng loại mẫu.
- Bắt đầu nhanh
Các mẫu hướng dẫn nhanh cung cấp các mẫu mã chứng minh khái niệm nhanh chóng để giúp bạn làm việc với Apps Script trong vòng chưa đầy 5 phút. Hướng dẫn nhanh có sẵn cho hầu hết các loại dự án Apps Script.
Tìm các hướng dẫn nhanh được sắp xếp theo loại dự án ở bên trái trong phần Mẫu theo loại dự án hoặc thử tính năng tự động hoá đơn giản này để tạo một tài liệu trên Google và gửi cho bạn một đường liên kết đến tài liệu đó qua email.
- Giải pháp
Các mẫu giải pháp là những dự án Apps Script có đầy đủ chức năng. Các giải pháp giải quyết những vấn đề thực tế của doanh nghiệp và cho thấy cách bạn có thể tự động hoá quy trình làm việc trên Google Workspace. Thông thường, bạn có thể triển khai các giải pháp mà không cần chỉnh sửa hoặc cập nhật mã.
Tìm các giải pháp được sắp xếp theo loại dự án ở bên trái trong phần Mẫu theo loại dự án hoặc thử giải pháp trộn thư phổ biến này.
- Lớp học lập trình
Lớp học lập trình là các hướng dẫn kỹ thuật từng bước và mang tính thực hành. Các lớp học lập trình này kết hợp phần giải thích, mã mẫu hoạt động theo phương pháp hay nhất và các bài tập về mã. Các lớp học lập trình có sẵn cho hầu hết các sản phẩm dành cho nhà phát triển của Google và được xuất bản trên Danh mục lớp học lập trình.
Tìm các lớp học lập trình dành riêng cho Apps Script ở bên trái trong mục Codelabs (Lớp học lập trình).
Bạn cũng có thể tìm thấy các mẫu Apps Script trên GitHub.
Bạn có thể phân nhánh các kho lưu trữ này và sử dụng mã làm tài liệu tham khảo cho các dự án của riêng mình.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eThis section offers Apps Script quickstarts, solutions, and codelabs to help you learn and implement Apps Script effectively.\u003c/p\u003e\n"],["\u003cp\u003eQuickstarts provide concise code samples for a fast introduction, while solutions offer complete projects addressing real-world scenarios.\u003c/p\u003e\n"],["\u003cp\u003eCodelabs guide you through hands-on tutorials with explanations and practical exercises for deeper learning.\u003c/p\u003e\n"],["\u003cp\u003eExplore samples organized by project type or delve into specific quickstarts, solutions, and codelabs for targeted learning experiences.\u003c/p\u003e\n"],["\u003cp\u003eAccess additional resources on the Google Workspace Developers YouTube channel and GitHub for further exploration and reference.\u003c/p\u003e\n"]]],["Apps Script offers three types of samples: Quickstarts, Solutions, and Codelabs. Quickstarts are brief code samples for rapid prototyping. Solutions are complete projects that solve real-world business issues and often require no code modification. Codelabs are step-by-step tutorials with explanations, sample code, and exercises. Samples are organized by project type and can also be found on GitHub for reference. Google also provides helpful tips and latest features on their Youtube channel.\n"],null,["# Apps Script samples overview\n\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| Got 5 minutes? Help us improve our Google Workspace documentation by taking a quick [online survey](https://forms.gle/XcqRP3PJiQv9ADuj9). |\n\nThis section provides Apps Script quickstarts, solutions, and codelabs.\nFollowing is a definition of each type of sample. \n\n|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | Prefer to learn through video? The Google Workspace Developers channel offers videos about tips, tricks, and the latest features. [Subscribe now](https://www.youtube.com/channel/UCUcg6az6etU_gRtZVAhBXaw) |\n\n*Quickstart*\n\n: Quickstart samples offer quick, proof-of-concept code samples to get you\n working with Apps Script in under five minutes. Quickstarts are available for\n most Apps Script project types.\n\n: Find quickstarts organized by project type at the left under **Samples by\n project type** or\n [try this simple automation](/apps-script/quickstart/automation) that creates a\n Google Doc and emails you a link to it.\n\n*Solution*\n\n: Solution samples are fully functional Apps Script projects. Solutions address\n realistic business problems and showcase how you can automate workflows across\n Google Workspace. Often, you can implement solutions without needing to edit or\n update the code.\n\n: Find solutions organized by project type at the left under **Samples by\n project type**\n or [try this\n popular mail merge solution](/apps-script/samples/automations/mail-merge).\n\n*Codelab*\n\n: Codelabs are hands-on, step-by-step technical tutorials. They combine\n explanation, working best-practice sample code, and code exercises. Codelabs are\n available for most Google developer products and are published on the\n [Codelab catalogue](https://codelabs.developers.google.com/).\n\n: Find Apps Script-specific codelabs at the left under **Codelabs**.\n\nYou can also find Apps Script samples on [GitHub](https://github.com/googleworkspace/apps-script-samples).\nYou can fork these repositories and use the code as a reference for your own\nprojects."]]