{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Onedrive Export Integration","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"onedrive-export-integration","__idx":0},"children":["Onedrive Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/onedrive-import-integration"},"children":["OneDrive Import Integrationの詳細を見る"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブ結果を直接OneDriveアカウントに送信できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のトピックに進んでください:"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"を含むTreasure Dataの基本知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["OneDriveまたはSharePointアカウント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認可されたTreasure アカウントアクセス"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールを使用して接続を作成","__idx":2},"children":["Treasure コンソールを使用して接続を作成"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい接続を作成","__idx":3},"children":["新しい接続を作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データ接続を設定する際、統合にアクセスするための認証を提供します。Treasure Dataでは、認証を設定してからソース情報を指定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrations Hub -> Catalogに移動し、OneDriveを検索して選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-15-1.2c8eeb7e101e3464da19dcc075f123f5cfaf894a1036c76162f7a1d02284c24a.94ab41d7.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のダイアログが開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-15-2.03fcfe97f1dcd2b7fac2cbcd0a2c1890e73fb78312b7c631a84bcef5b9123a85.94ab41d7.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data OneDriveへのアクセスには、OAuth2認証が必要です。この認証では、ユーザーが手動でTreasure アカウントをそれぞれのOneDriveアカウントに接続する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MicrosoftテナントのAdmin ユーザーまたは通常のユーザーがコネクターに認証する方法に影響する2つの認証設定があります:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["直接ユーザー認証:"]}," ユーザーのMicrosoftテナントは、管理者による事前承認を必要としません。組織内のすべてのユーザーは、管理者による事前承認なしで、OAuth認証フローを通じて直接コネクターを認証できます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["管理者による事前承認が必要:"]}," ユーザーのMicrosoftテナントは、通常のユーザーが認証する前に、管理者がデータコネクターを事前承認する必要があるように設定されています。この設定は、より厳格なセキュリティ管理を持つ組織でよく見られ、管理者が組織全体に代わってアプリケーションに権限を付与する必要があります。コネクターが事前承認されると、通常のユーザーはOAuth認証フローを進めて、自分のアカウントをMicrosoft OneDriveに接続できます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["直接ユーザー認証"]}]},"の場合: 認証するには、以下の手順を完了してください:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click here to connect to a new accountを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ポップアップウィンドウでOneDriveアカウントにログインし、Treasure Dataアプリへのアクセスを許可します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-15-4.e52bb99c17f12ba5d06ccc4cf53f699f21d4afe55c206efb66498f6ba9067629.94ab41d7.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールにリダイレクトされます。最初のステップ（新しい接続を作成）を繰り返し、新しいOAuth接続を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-15-5.6698e51c697a58f4fd2b8593f215c4e602db6c28901e5aa3d8db7579d2181796.94ab41d7.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新しいOneDrive接続に名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-15-6.61e01a7c350d6b7fad5ce5ca35af63475e69c24ef4a762acb73753918ea708c0.94ab41d7.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["管理者による事前承認が必要"]},"の場合、認証フローは似ていますが、管理者ユーザーが組織全体のコネクターを事前承認する最初のステップを実行する必要があります:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive_connector_step1.75aaec87158336c3a0697d8382e733e60f29cca681d4aa9083e80dd971704a47.94ab41d7.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このステップが完了すると、同じMicrosoftテナント内のすべての通常のユーザーは、同意付与画面を再度通過することなくコネクターを認証できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データ接続への出力結果を設定","__idx":4},"children":["データ接続への出力結果を設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このステップでは、クエリを作成または再利用します。クエリで、データ接続を設定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールクエリエディターページに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データをエクスポートするために使用する予定のクエリにアクセスします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["必要に応じて、クエリをコンパイルします。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"結果エクスポートターゲットを指定","__idx":5},"children":["結果エクスポートターゲットを指定"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Export Resultsを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["検索ボックスに接続名を入力して、OneDrive接続をフィルタリングして選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["すべての情報を編集します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-15-9.39082ce4c04b45d14044a7f2413ac140167edca83e554e9705536739b0deeed7.94ab41d7.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-15-10.dc4abfd70168c58ce57b3d23101ac723a80c758c03fb476b5a5a2a93f28cd268.94ab41d7.png","alt":""},"children":[]}," ","OneDrive Account Plan: 2つのアカウントプランがあります:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Business: ドメイン、相対パス、およびフォルダパスを指定する必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Personal: フォルダパスと、それが共有フォルダであるかどうかを指定する必要があります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Domain Name"]},": フォルダのドメイン。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Relative Path"]},": OneDriveまたはSharePointサイト内のユーザーフォルダの相対パス。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Folder Path"]},": OneDriveまたはSharePoint内のフォルダのディレクトリ。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File Name"]},": 宛先ファイル名。マルチバイト文字は使用できません。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["This is a shared folder"]},": 誰かによって共有されているフォルダの場合に選択します"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Format"]},": ファイル拡張子。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Encoders"]}," 結果を圧縮するかどうかを示します。利用可能なオプション: None、gz、およびbzip2、暗号化PGP"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Public Key"]}," 公開鍵は、アップロードする前にファイルを暗号化するために使用されます"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Key Identifier"]}," ファイルを保護するために使用される暗号化サブキーのKey IDを指定します。マスターキーは暗号化プロセスから除外されます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Amor"]}," ASCII armorを使用するかどうか"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Compression Type"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Boxサーバーにアップロードするために暗号化する前に圧縮されるファイルを圧縮するために使用される圧縮アルゴリズムを定義します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意: 暗号化してアップロードする前に、ファイルを圧縮してください。復号化すると、ファイルは.gzや.bz2などの圧縮形式に戻ります。"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Header line"]},": エクスポートされたデータに列名をヘッダー行として含める場合に選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Null String"]},": NULL値を表すためにこの値を使用します。利用可能なオプション:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Default. ファイル形式CSVの場合、空の文字列（''）がNull値を表すために使用され、TSV形式の場合、\\Nが使用される場合に選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Empty string"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\\N NULL"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End-of-line character"]},": 行末の文字。利用可能なオプションは、CRLF、LF、およびCRです"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Quote Policy"]},": 利用可能なオプション:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ALL. すべての値が二重引用符（\"\"）で囲まれる場合に選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["MINIMAL. 埋め込まれた引用符（\"）を含む値が、連続する引用符のペア（\"\"）で表示される場合に選択します。MINIMALクォートポリシーはCSVに適用されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["NONE. 埋め込まれた引用符のエスケープが適用されない場合に選択します。デフォルトでは、NONEはTSVファイル形式に適用されます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Max Retries"]},": OneDriveサーバーエラーまたはネットワークエラーによりエラーが発生した場合、アップロードを中止する前に試行される再試行の回数。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Initial Retry Time Wait In Millies"]},": エラーが発生した場合、再試行の初期待機時間。各再試行後に待機時間を2倍にします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Max Retry Wait In Millies"]},": 再試行の上限待機時間。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"optional-schedule-query-export-jobs","__idx":6},"children":["(Optional) Schedule Query Export Jobs"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can use Scheduled Jobs with Result Export to periodically write the output result to a target destination that you specify."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data's scheduler feature supports periodic query execution to achieve high availability."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When two specifications provide conflicting schedule specifications, the specification requesting to execute more often is followed while the other schedule specification is ignored."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example, if the cron schedule is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * 1'"]},", then the 'day of month' specification and 'day of week' are discordant because the former specification requires it to run every first day of each month at midnight (00:00), while the latter specification requires it to run every Monday at midnight (00:00). The latter specification is followed."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"scheduling-your-job-using-treasure-console","__idx":7},"children":["Scheduling your Job Using Treasure Console"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Navigate to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench > Queries"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a new query or select an existing query."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Next to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]},", select None."," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-28-51.f1b242f6ecc7666a0097fdf37edd1682786ec11ef80eff68c66f091bc405c371.0f87d8d4.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the drop-down, select one of the following schedule options:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-29-47.45289a1c99256f125f4d887e501e204ed61f02223fde0927af5f425a89ace0c0.0f87d8d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Drop-down Value"},"children":["Drop-down Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom cron..."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Review ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#custom-cron-details"},"children":["Custom cron... details"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@daily (midnight)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run once a day at midnight (00:00 am) in the specified time zone."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@hourly (:00)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run every hour at 00 minutes."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No schedule."]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"custom-cron-details","__idx":8},"children":["Custom cron... Details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-30-23.0f94a8aa5f75ea03e3fec0c25b0640cd59ee48d1804a83701e5f2372deae466c.0f87d8d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cron Value"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 * * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run once an hour."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run once a day at midnight."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1 * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run once a month at midnight on the morning of the first day of the month."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create a job that has no scheduled run time."]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":" *    *    *    *    *\n -    -    -    -    -\n |    |    |    |    |\n |    |    |    |    +----- day of week (0 - 6) (Sunday=0)\n |    |    |    +---------- month (1 - 12)\n |    |    +--------------- day of month (1 - 31)\n |    +-------------------- hour (0 - 23)\n +------------------------- min (0 - 59)\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following named entries can be used:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Day of Week: sun, mon, tue, wed, thu, fri, sat."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Month: jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A single space is required between each field. The values for each field can be composed of:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"fixed-table"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"35%","data-label":"Field Value"},"children":["Field Value "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"Example"},"children":["Example "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"45%","data-label":"Example Description"},"children":["Example Description "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A single value, within the limits displayed above for each field."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A wildcard ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]}," to indicate no restriction based on the field."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Configures the schedule to run at midnight (00:00) on the first day of each month."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A range ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2-5'"]},", indicating the range of accepted values for the field."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1-10 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Configures the schedule to run at midnight (00:00) on the first 10 days of each month."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A list of comma-separated values ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,3,4,5'"]},", indicating the list of accepted values for the field."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1,11,21 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Configures the schedule to run at midnight (00:00) every 1st, 11th, and 21st day of each month."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A periodicity indicator ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*/5'"]}," to express how often based on the field's valid range of values a schedule is allowed to run."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'30 */2 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Configures the schedule to run on the 1st of every month, every 2 hours starting at 00:30. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 */5 * *'"]}," configures the schedule to run at midnight (00:00) every 5 days starting on the 5th of each month."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A comma-separated list of any of the above except the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]}," wildcard is also supported ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,*/5,8-10'"]},"."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 5,*/10,25 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Configures the schedule to run at midnight (00:00) every 5th, 10th, 20th, and 25th day of each month."]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["(Optional) You can delay the start time of a query by enabling the Delay execution."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"execute-the-query","__idx":9},"children":["Execute the Query"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Save the query with a name and run, or just run the query. Upon successful completion of the query, the query result is automatically exported to the specified destination."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scheduled jobs that continuously fail due to configuration errors may be disabled on the system side after several notifications."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["(Optional) You can delay the start time of a query by enabling the Delay execution."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリの例","__idx":10},"children":["クエリの例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT email, first_name, last_name, region, age, gender, website FROM ( VALUES ('kate1@gmail.com', 'Kate', 'Tiny', 'Asia', '41 and above', 'female', 'google.com'), ('ronan@gmail.com', 'R', 'P', 'Americas', '21-30', 'male', 'google.com'), ('michelle@gmail.com', 'M', 'C', 'EMEA', '31-40', 'male', 'facebook.com')) tbl (email, first_name, last_name, region, age, gender, website);\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"activate-a-segment-in-audience-studio","__idx":11},"children":["Activate a Segment in Audience Studio"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can also send segment data to the target platform by creating an activation in the Audience Studio."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Navigate to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Studio"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select a parent segment."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the target segment, right-mouse click, and then select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," panel, enter an Activation name and configure the activation according to the previous section on Configuration Parameters."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Customize the activation output in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]}," panel."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ouput.b2c7f1d909c4f98ed10f5300df858a4b19f71a3b0834df952f5fb24018a5ea78.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Attribute Columns",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export All Columns"]}," to export all columns without making any changes."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," to add specific columns for the export. The Output Column Name pre-populates with the same Source column name. You can update the Output Column Name. Continue to select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]},"to add new columns for your activation output."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String Builder",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add string"]}," to create strings for export. Select from the following values:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String: Choose any value; use text to create a custom value."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp: The date and time of the export."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Id: The segment ID number."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name: The segment name."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id: The parent segment number."]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Set a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-output-connector-on-audience-studio-2024-08-28.a99525173709da1eb537f839019fa7876ffae95045154c8f2941b030022f792c.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select the values to define your schedule and optionally include email notifications."]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]},"."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you need to create an activation for a batch journey, review ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation"},"children":["Creating a Batch Journey Activation"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"onedriveのワークフロー例","__idx":12},"children":["OneDriveのワークフロー例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"timezone: UTC\n\n_export:\n  td:\n    database: sample_datasets\n\n+td-result-into-one-drive:\n  td>: queries/sample.sql\n  result_connection: your_connection_name\n  result_settings:\n    account_type:\n    replace_existing:\n    file_name:\n    folder_path:\n    domain_name:\n    server_relative_path:\n    is_shared_folder:\n    replace_existing:\n    format:\n    compression:\n    header_line:\n    null_string:\n    newline:\n    quote_policy:\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cliを使用して接続を作成","__idx":13},"children":["CLIを使用して接続を作成"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"tdコマンドのインストール","__idx":14},"children":["'td'コマンドのインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"をインストールします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"オンデマンドジョブの場合","__idx":15},"children":["オンデマンドジョブの場合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td query"]},"コマンドの",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-r"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--result"]},"オプションを使用して、OneDrive結果出力先を追加します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query -d test_db -w \\\n'SELECT id, via FROM table1' \\\n--type presto -r \\\n'{\"type\":\"one_drive\", \"refresh_token\":\"***\",\"account_type\":\"personal\",\"domain_name\":null,\"server_relative_path\":null,\"folder_path\":\"/abc\",\"is_shared_folder\":false,\"file_name\":\"test_file\",\"replace_existing\":null,\"format\":\"csv\",\"compression\":\"\",\"header_line\":true,\"null_string\":\"default\",\"newline\":\"CRLF\",\"quote_policy\":null,\"retry_count\":\"5\",\"retry_initial_wait_millis\":\"1000\",\"max_retry_wait_millis\":\"300000\"}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュールされたジョブの場合","__idx":16},"children":["スケジュールされたジョブの場合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td sched:create"]},"コマンドの",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-r"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--result"]},"オプションを使用して、OneDrive結果出力先を追加します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td sched:create every_6_mins \"*/6 * * * *\" \\\n-d test_db -w 'SELECT id, via FROM table1' \\\n--type presto \\\n-r '{{\"type\":\"one_drive\", \"refresh_token\":\"***\",\"account_type\":\"personal\",\"domain_name\":null,\"server_relative_path\":null,\"folder_path\":\"/abc\",\"is_shared_folder\":false,\"file_name\":\"test_file\",\"replace_existing\":null,\"format\":\"csv\",\"compression\":\"\",\"header_line\":true,\"null_string\":\"default\",\"newline\":\"CRLF\",\"quote_policy\":null,\"retry_count\":\"5\",\"retry_initial_wait_millis\":\"1000\",\"max_retry_wait_millis\":\"300000\"}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"よくある質問","__idx":17},"children":["よくある質問"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"q-誰かが共有してくれたフォルダにエクスポートするにはどうすればよいですか","__idx":18},"children":["Q: 誰かが共有してくれたフォルダにエクスポートするにはどうすればよいですか？"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Business Account Plan:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ドメイン名、サーバー相対パス、およびフォルダパスが必要です。ブラウザで「Shared With Me」タブに移動します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-1.487b9d297283e909d41471521ccec5cca31829bc4b5d78410ea59c2d3b35d205.94ab41d7.png","alt":""},"children":[]}," ","共有フォルダを開いて選択し、「Domain Name and Relative Path」で説明されているように、ドメイン名、相対パス、およびフォルダパスをメモします。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Personal Account Plan"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["フィールド: This is a shared folder（is_shared_folder）をtrueに設定し、画像に示されているように共有フォルダにドリルダウンする必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-2.24a621c7207a88a36b48e57eba2864c57616d1ae1e87ce10eca318fbbbd150f0.94ab41d7.png","alt":""},"children":[]}," ","共有フォルダf1を選択し、インポートするf2ターゲットフォルダに移動します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-3.381a619bddab7bc5cc8c8256b80daf25d92716205a181c41b94c01013e9e5661.94ab41d7.png","alt":""},"children":[]}," ","次のようにフォルダパスパラメータを入力します: folder_path: /f1/f2（注意: フォルダf0はあなたと共有されていません）"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-4.8b141f69167af2e3de7ab111840604368a79b54029e71bf819c9b017bb01c1ca.94ab41d7.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"q-sharepointコレクションにファイルをエクスポートするにはどうすればよいですか","__idx":19},"children":["Q: SharePointコレクションにファイルをエクスポートするにはどうすればよいですか？"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["エクスポートパスとして'/sites'と'/teams'（'/personal'を含む）をサポートできます。他のパスはサポートされていません。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"付録","__idx":20},"children":["付録"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"domain-nameとrelative-path","__idx":21},"children":["Domain NameとRelative Path"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Domain NameとURL Relative Pathは、個人フォルダ、SharePointサイトコレクション、および共有されているフォルダを含む、OneDrive businessアカウントプランにアクセスするために必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ブラウザでインポートするフォルダを開きます。次に、次のようにDomain NameとRelative Pathを取得します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Personal folder"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-5.9e65ea547031ab82716da26ea7cecbe17b6c35e3340c4b19db6be27685a74ca4.94ab41d7.png","alt":""},"children":[]}," ","SharePoint collection"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-6.012162dafbe34f62c02b6aea2f14119679b8edc4b73ebd60a43cebaf80d7670d.94ab41d7.png","alt":""},"children":[]}," ","Folder shared with me"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-7.71a0d0ce3bb8e15a6a594f73d2bb26d2aa0118b28a33b93c827399f348902f5f.94ab41d7.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"独自のrefresh_tokenを取得","__idx":22},"children":["独自のrefresh_tokenを取得"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLIからジョブを発行するには、client_id、client_secret、およびrefresh_tokenが必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["開発者アカウントを登録し、Azure App Registration Portal ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://portal.azure.com/#home"},"children":["https://portal.azure.com/#home"]},"に移動します。検索ボックスで、App Registrationを検索します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-8.114981469af1aae81498cbed67c324ad2d72f18edc938f7ef4ad77ff61634c32.94ab41d7.png","alt":""},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Registration"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-9.4172334b247b29de0785e61c569a05760717e69c533d3089ebab0c741820f545.94ab41d7.png","alt":""},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["App Name"]},"を入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Account Type"]},"を選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Redirect URI"]},"を入力します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Register"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-10.b54b3f836c17a6cabe0b924eeadf3a5b695bb4e30a6d4d09e8e05d3da6452222.94ab41d7.png","alt":""},"children":[]}," ","App Permissionsタブから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add a Permission"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-11.a7df581e89c75cbe7a059fa1be43e5d2e54fe5152c1ca65cdbcb68086f6616e9.94ab41d7.png","alt":""},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request API permissions"]},"ウィンドウから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Microsoft Graph"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delegated permissions"]},"を選択し、次のように権限を追加します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-12.9e4caf11312748f631748952ade54a2b61c8833902fa8c68ec4ad139c14f5f20.94ab41d7.png","alt":""},"children":[]}," ","Certificates & secretsタブから、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New client secret"]},"を選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Never"]},"を選択して",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add"]},"します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいクライアントシークレットキーが次のように作成されます:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-14.429ca3215073223a4bf08f7678236df04850d26501f28299f24c3a3c68a98b12.94ab41d7.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Overviewタブから、次のようにクライアントIDを確認できます:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-15.b579e334b1bb2695089fc65a39e842ed7c6dfbfb163ae2f93341edad67c3bb50.94ab41d7.png","alt":""},"children":[]}," ","このURLのclient_idを置き換えて、ブラウザで開きます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=xxxxxx&response_type=code&redirect_uri=http://localhost&response_mode=query&scope=offline_access files.readwrite.all openid sites.readwrite.all&state=1234\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Permission Request"]},"ウィンドウを受け入れます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["アドレスバーからコードをコピーします:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/onedrive-export-integration-2024-02-16-16.75b5312842112046e1cdc18590dcecd76cf3b25a99e60b5dedcf69500b232801.94ab41d7.png","alt":""},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["code"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["client_id"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["client_secret"]},"を置き換えて、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://curl.haxx.se/docs/manpage.html"},"children":["curl"]},"コマンドを実行し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["access_token"]},"と",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["refresh_token"]},"を取得します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \\  https://login.microsoftonline.com/common/oauth2/v2.0/token \\  -H 'Content-Type: application/x-www-form-urlencoded' \\  -d 'client_id={xxxxxx}&client_secret={xxxxx}&grant_type=authorization_code&scope=offline_access%20files.readwrite.all%20openid%20sites.readwrite.all&code={xxxxxx}&redirect_uri=http://localhost'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"要求される権限","__idx":23},"children":["要求される権限"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["個人アカウントを使用している場合、OneDrive Connectorは以下の権限を要求します:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Permission"},"children":["Permission"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Note"},"children":["Note"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["User.Read"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ユーザーがアプリにサインインできるようにし、アプリがサインインしているユーザーのプロファイルを読み取れるようにします。また、サインインしているユーザーの基本的な会社情報をアプリが読み取れるようにします。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Files.ReadWrite.AppFolder"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アプリケーションのフォルダ内のファイルの読み取り、作成、更新、および削除をアプリに許可します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Application's folderは、「TreasureData OneDrive Connector」アプリ専用の特別なフォルダです。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/special-folders-appfolder?view=odsp-graph-online"},"children":["What is an App Folder"]},"を参照してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Files.ReadWrite.All"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サインインしているユーザーがアクセスできるすべてのファイルの読み取り、作成、更新、および削除をアプリに許可します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インポートおよびエクスポートConnectorは同じクライアントアプリケーションを共有し、読み取り、作成、更新のみを実行しますが、ファイルは削除しません。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["offline_access"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["現在アプリを使用していない場合でも、アプリがユーザーデータを読み取って更新できるようにします。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールインポート/エクスポートに使用"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Business/workアカウントは追加の権限を要求します"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Permission"},"children":["Permission"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Note"},"children":["Note"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sites.ReadWrite.All"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["すべてのグループの読み取りと書き込み、すべてのサイトコレクション内のアイテムの編集または削除"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["読み取り、作成、更新のみを実行しますが、ファイルは削除しません。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["削除権限はSites. ReadWrite. All権限の一部としてデフォルトで付与されますが、データコネクタはMicrosoft OneDrive上のファイルを削除しません。"]}]}]},"headings":[{"value":"Onedrive Export Integration","id":"onedrive-export-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure コンソールを使用して接続を作成","id":"treasure-コンソールを使用して接続を作成","depth":2},{"value":"新しい接続を作成","id":"新しい接続を作成","depth":3},{"value":"データ接続への出力結果を設定","id":"データ接続への出力結果を設定","depth":3},{"value":"結果エクスポートターゲットを指定","id":"結果エクスポートターゲットを指定","depth":3},{"value":"(Optional) Schedule Query Export Jobs","id":"optional-schedule-query-export-jobs","depth":3},{"value":"Scheduling your Job Using Treasure Console","id":"scheduling-your-job-using-treasure-console","depth":4},{"value":"Custom cron... Details","id":"custom-cron-details","depth":4},{"value":"Execute the Query","id":"execute-the-query","depth":3},{"value":"クエリの例","id":"クエリの例","depth":3},{"value":"Activate a Segment in Audience Studio","id":"activate-a-segment-in-audience-studio","depth":2},{"value":"OneDriveのワークフロー例","id":"onedriveのワークフロー例","depth":2},{"value":"CLIを使用して接続を作成","id":"cliを使用して接続を作成","depth":2},{"value":"'td'コマンドのインストール","id":"tdコマンドのインストール","depth":3},{"value":"オンデマンドジョブの場合","id":"オンデマンドジョブの場合","depth":3},{"value":"スケジュールされたジョブの場合","id":"スケジュールされたジョブの場合","depth":3},{"value":"よくある質問","id":"よくある質問","depth":2},{"value":"Q: 誰かが共有してくれたフォルダにエクスポートするにはどうすればよいですか？","id":"q-誰かが共有してくれたフォルダにエクスポートするにはどうすればよいですか","depth":3},{"value":"Q: SharePointコレクションにファイルをエクスポートするにはどうすればよいですか？","id":"q-sharepointコレクションにファイルをエクスポートするにはどうすればよいですか","depth":3},{"value":"付録","id":"付録","depth":2},{"value":"Domain NameとRelative Path","id":"domain-nameとrelative-path","depth":3},{"value":"独自のrefresh_tokenを取得","id":"独自のrefresh_tokenを取得","depth":3},{"value":"要求される権限","id":"要求される権限","depth":3}],"frontmatter":{"seo":{"title":"Onedrive Export Integration"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/onedrive-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}