Admin SDK Groups Migration Service
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
سرویس مهاجرت گروههای Admin SDK به شما امکان میدهد از API مهاجرت گروههای Admin SDK در Apps Script استفاده کنید. این API به مدیران دامنههای Google Workspace (از جمله نمایندگان فروش) این امکان را میدهد که ایمیلها را از پوشههای عمومی و لیستهای توزیع به بایگانیهای گفتگوی Google Groups منتقل کنند.
مرجع
برای اطلاعات دقیق در مورد این سرویس، به مستندات مرجع API مهاجرت گروههای SDK مدیریت مراجعه کنید. مانند تمام سرویسهای پیشرفته در Apps Script، سرویس مهاجرت گروههای SDK مدیریت از همان اشیاء، روشها و پارامترهای API عمومی استفاده میکند. برای اطلاعات بیشتر، به بخش «نحوه تعیین امضاهای روش» مراجعه کنید.
این نمونه، سه پیام با فرمت RFC 822 را از هر یک از سه رشته آخر در صندوق ورودی Gmail کاربر دریافت میکند، یک حباب از محتوای ایمیل (شامل پیوستها) ایجاد میکند و آن را در یک گروه گوگل در دامنه قرار میدهد.
/** * Gets three RFC822 formatted messages from the each of the latest three * threads in the user's Gmail inbox, creates a blob from the email content * (including attachments), and inserts it in a Google Group in the domain. */functionmigrateMessages(){// TODO (developer) - Replace groupId value with yoursconstgroupId="exampleGroup@example.com";constmessagesToMigrate=getRecentMessagesContent();for(constmessageContentofmessagesToMigrate){constcontentBlob=Utilities.newBlob(messageContent,"message/rfc822");AdminGroupsMigration.Archive.insert(groupId,contentBlob);}}/** * Gets a list of recent messages' content from the user's Gmail account. * By default, fetches 3 messages from the latest 3 threads. * * @return {Array} the messages' content. */functiongetRecentMessagesContent(){constNUM_THREADS=3;constNUM_MESSAGES=3;constthreads=GmailApp.getInboxThreads(0,NUM_THREADS);constmessages=GmailApp.getMessagesForThreads(threads);constmessagesContent=[];for(leti=0;i < messages.length;i++){for(letj=0;j < NUM_MESSAGES;j++){constmessage=messages[i][j];if(message){messagesContent.push(message.getRawContent());}}}returnmessagesContent;}
تاریخ آخرین بهروزرسانی 2025-12-16 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-12-16 بهوقت ساعت هماهنگ جهانی."],[],[]]