অ্যাডমিন SDK গ্রুপ মাইগ্রেশন পরিষেবা আপনাকে অ্যাপ স্ক্রিপ্টে অ্যাডমিন SDK-এর গ্রুপ মাইগ্রেশন API ব্যবহার করতে দেয়। এই API এর প্রশাসকদের দেয় Google Workspace ডোমেন (পুনর্বিক্রেতা সহ) সর্বজনীন ফোল্ডার এবং বিতরণ তালিকা থেকে Google গ্রুপ আলোচনা সংরক্ষণাগারে ইমেল স্থানান্তর করার ক্ষমতা।
রেফারেন্স
এই পরিষেবার বিস্তারিত তথ্যের জন্য, অ্যাডমিন SDK গ্রুপ মাইগ্রেশন API-এর রেফারেন্স ডকুমেন্টেশন দেখুন। অ্যাপস স্ক্রিপ্টের সমস্ত উন্নত পরিষেবাগুলির মতো, অ্যাডমিন SDK গ্রুপ মাইগ্রেশন পরিষেবাটি পাবলিক API হিসাবে একই বস্তু, পদ্ধতি এবং পরামিতিগুলি ব্যবহার করে৷ আরও তথ্যের জন্য, দেখুন কিভাবে পদ্ধতি স্বাক্ষর নির্ধারণ করা হয় ।
Gmail থেকে একটি Google গ্রুপে ইমেল স্থানান্তর করুন৷
এই নমুনাটি ব্যবহারকারীর Gmail ইনবক্সে সাম্প্রতিক তিনটি থ্রেডের প্রতিটি থেকে তিনটি RFC 822 ফর্ম্যাট করা বার্তা পায়, ইমেল সামগ্রী থেকে একটি ব্লব তৈরি করে (সংযুক্তিগুলি সহ), এবং এটিকে ডোমেনের একটি Google গ্রুপে সন্নিবেশিত করে৷
/** * 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;}
[[["সহজে বোঝা যায়","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-01-09 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The Admin SDK Groups Migration service enables administrators to migrate emails from public folders and distribution lists to Google Groups using Apps Script."],["This advanced service requires prior enabling in Google Workspace domains (including resellers) before use."],["Developers can leverage the Admin SDK Groups Migration API to programmatically manage email migration workflows."],["Sample code provided demonstrates how to migrate RFC 822 formatted emails from Gmail to a designated Google Group."],["Comprehensive documentation and support resources are available to guide developers in utilizing the service effectively."]]],[]]