Ringkasan contoh Apps Script
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Bagian ini menyediakan panduan memulai cepat, solusi, dan codelab Apps Script.
Berikut adalah definisi setiap jenis sampel.
- Panduan memulai
Contoh panduan memulai menawarkan contoh kode cepat untuk membuktikan konsep agar Anda dapat mulai menggunakan Apps Script dalam waktu kurang dari lima menit. Panduan memulai tersedia untuk
sebagian besar jenis project Apps Script.
Temukan panduan memulai yang dikelompokkan menurut jenis project di sebelah kiri di bagian Contoh menurut jenis project atau
coba otomatisasi sederhana ini yang membuat
Dokumen Google dan mengirimkan email berisi link ke dokumen tersebut kepada Anda.
- Solusi
Contoh solusi adalah project Apps Script yang berfungsi penuh. Solusi ini mengatasi masalah bisnis yang realistis dan menunjukkan cara mengotomatiskan alur kerja di Google Workspace. Sering kali, Anda dapat menerapkan solusi tanpa perlu mengedit atau mengupdate kode.
Temukan solusi yang dikelompokkan menurut jenis project di sebelah kiri pada bagian Contoh menurut jenis project atau coba solusi gabungan surat populer ini.
- Codelab
Codelab adalah tutorial teknis langkah demi langkah yang bersifat interaktif. Codelab ini menggabungkan penjelasan, contoh kode praktik terbaik yang berfungsi, dan latihan kode. Codelab tersedia untuk sebagian besar produk developer Google dan dipublikasikan di katalog Codelab.
Temukan codelab khusus Apps Script di sebelah kiri di bagian Codelabs.
Anda juga dapat menemukan contoh Apps Script di GitHub.
Anda dapat membuat fork repositori ini dan menggunakan kode sebagai referensi untuk project Anda sendiri.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-31 UTC.
[null,null,["Terakhir diperbarui pada 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."]]