---
schema_version: "1"
id: c185cce0e0dac365e554e865c51d181efc796dae89888df4c9337f435c280f48
title: Anypoint Studio を使用した Microsoft Outlook 365 Connector 1.3 の設定
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/microsoft-outlook-365-connector/latest/microsoft-outlook-365-connector-studio.md
canonical_url: https://docs.mulesoft.com/jp/microsoft-outlook-365-connector/latest/microsoft-outlook-365-connector-studio
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 19f298f2437e2e3569b103dcf4b3cc2fe1f6ccb42b8fcb89fc07120160faf684
description: MuleSoft Documentation Site
release: "1.3"
latest: true
---
# Anypoint Studio を使用した Microsoft Outlook 365 Connector 1.3 の設定

Anypoint Studio (Studio) エディターは、Mule アプリケーション、プロパティ、および設定ファイルの設計と更新に役立ちます。

Studio でコネクタを追加および設定する手順は、次のとおりです。

1. [Mule プロジェクトを作成します](#create-mule-project)​。
2. [コネクタを Mule プロジェクトに追加します](#add-connector-to-project)​。
3. [コネクタのフローのソースを設定します](#configure-input-source)​。
4. [フローにコネクタの操作を追加します](#add-connector-operation)​。
5. [コネクタのグローバル要素を設定します](#configure-global-element)​。
6. [その他のコネクタ項目を設定します](#configure-other-fields)​。

[「アプリケーションログの表示」](#view-app-log)​で説明されているように、コネクタを実行するときに、リアルタイムでアプリケーションログを表示して問題を確認できます。

Studio で初めてコネクタを設定する場合は、​[「Anypoint Studio を使用したコネクタの設定」](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)​を参照してください。このトピックを読んだ後でコネクタ項目に関する追加情報が必要な場合は、​[「Microsoft Outlook 365 Connector リファレンス」](https://docs.mulesoft.com/jp/microsoft-outlook-365-connector/latest/microsoft-outlook-365-connector-reference)​を参照してください。

## [](#create-mule-project)Mule プロジェクトを作成する

Studio で、コネクタを追加および設定する新しい Mule プロジェクトを作成します。

1. Studio で、​**\[File (ファイル)\] > \[New (新規)\] > \[Mule Project (Mule プロジェクト)\]**​ を選択します。
2. Mule プロジェクトの名前を入力して、​**\[Finish (完了)\]**​ をクリックします。

## [](#add-connector-to-project)コネクタを Mule プロジェクトに追加する

Microsoft Outlook 365 用 Anypoint Connector (Outlook 365 Connector) を Mule プロジェクトに追加して、XML コードにコネクタの名前空間およびスキーマの場所を自動的に入力し、プロジェクトの ​`pom.xml`​ ファイルに必須の連動関係を追加します。

1. **\[Mule Palette (Mule パレット)\]**​ ビューで、​**\[(X) Search in Exchange ((X) Exchange 内を検索)\]**​ をクリックします。
2. **\[Add Dependencies to Project (連動関係をプロジェクトに追加)\]**​ ウィンドウで、検索項目に「​`outlook365`​」と入力します。
3. **\[Available modules (使用可能なモジュール)\]**​ で ​**\[Outlook365 Connector\]**​ をクリックします。
4. **\[Add (追加)\]**​ をクリックします。
5. **\[Finish (完了)\]**​ をクリックします。

Studio でコネクタを Mule プロジェクトに追加しても、Studio ワークスペースの他のプロジェクトはそのコネクタを使用できません。

## [](#configure-input-source)ソースの設定

ソースは、指定された条件が満たされたときにフローを開始します。 次の入力元のいずれかを Outlook 365 Connector で使用するように設定できます。

- HTTP Listener (HTTP リスナー)  
    設定されたホストとポートで要求を受信するたびにフローを開始する
- スケジューラー  
    時間ベースの条件が満たされたときにフローを開始する

たとえば、HTTP Listener ソースを設定する手順は、次のとおりです。

1. **\[Mule Palette (Mule パレット)\]**​ ビューで、​**\[HTTP\] > \[Listener\]**​ を選択します。
2. **\[Listener\]**​ を Studio キャンバスにドラッグします。
3. **\[Listener (リスナー)\]**​ 設定画面で、必要に応じて ​**\[Display Name (表示名)\]**​ 項目の値を変更します。
4. **\[Path (パス)\]**​ 項目の値を指定します。
5. **\[Connector configuration (コネクタ設定)\]**​ 項目の横にあるプラス記号 (​**+**​) をクリックして、アプリケーション内の HTTP Listener ソースのすべてのインスタンスで使用できるグローバル要素を設定します。
6. **\[General (一般)\]**​ タブで、コネクタの接続情報を指定します。
7. **\[TLS\]**​ タブで、必要に応じてコネクタの TLS 情報を指定します。
8. **\[Advanced (詳細)\]**​ タブで、必要に応じて再接続戦略を含む再接続情報を指定します。
9. **\[Test Connection (接続をテスト)\]**​ をクリックして、Mule が指定されたサーバーに接続できることを確認します。
10. **\[OK\]**​ をクリックします。

## [](#add-connector-operation)フローにコネクタの操作を追加する

フローにコネクタの操作を追加するときは、そのコネクタで実行するアクションを指定しています。

Outlook 365 Connector の操作を追加する手順は、次のとおりです。

1. **\[Mule Palette (Mule パレット)\]**​ ビューで ​**\[Outlook365\]**​ を選択し、目的の操作を選択します。
2. その操作を Studio キャンバスの入力元の右にドラッグします。

## [](#configure-global-element)コネクタのグローバル要素を設定する

コネクタを設定する場合、アプリケーション内のそのコネクタのすべてのインスタンスで使用できるグローバル要素を設定します。グローバル要素を設定するには、コネクタが対象の Outlook 365 システムにアクセスするために必要な認証ログイン情報を提供する必要があります。Outlook 365 Connector は、OAuth 2.0 認証コード許可と OAuth 2.0 クライアントログイン情報許可をサポートします。

Outlook 365 Connector のグローバル要素を設定する手順は、次のとおりです。

1. Studio キャンバスで操作を選択します。
2. 操作の設定画面で、​**\[Connector configuration (コネクタ設定)\]**​ 項目の横にあるプラス記号 (​**+**​) をクリックし、グローバル要素設定項目にアクセスします。
3. **\[General (一般)\]**​ タブの ​**\[Connection (接続)\]**​ で、設定する認証方式を選択します。
    
    - [OAuth 2.0 認証コード許可による認証](#oauth2-authorization)
    - [OAuth 2.0 クライアントログイン情報許可による認証](#oauth2-client)
    
    ANT スタイルのプロパティプレースホルダーを含む設定ファイルを参照するか (推奨)、グローバル設定プロパティに認証ログイン情報を入力できます。プロパティプレースホルダーを使用する利点とその設定方法については、​[「Anypoint Connector 設定」](https://docs.mulesoft.com/connectors/introduction/intro-connector-configuration-overview)​を参照してください。
4. **\[Advanced (詳細)\]**​ タブで、必要に応じて再接続戦略を含む再接続情報を指定します。
5. **\[Test Connection (接続をテスト)\]**​ をクリックして、Mule が指定されたサーバーに接続できることを確認します。
6. **\[OK\]**​ をクリックします。

### [](#oauth2-authorization)OAuth 2.0 認証コード許可による認証

Unresolved include directive in modules/ROOT/pages/microsoft-outlook-365-connector-studio.adoc - include::connectors::partial$oauth2-description.adoc\[\]

**\[Global Element Properties (グローバル要素のプロパティ)\]**​ 画面の ​**\[General (一般)\]**​ タブで次の情報を入力し、OAuth 2.0 認証コード許可による認証を設定します。

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 30%;">
<col style="width: 70%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">ユーザーアクション</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Name (名前)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>設定名を入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Connection (接続)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>[OAuth 2.0 Authorization Code (OAuth 2.0 認証コード)]</strong>​ を選択します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Consumer Key (コンシューマーキー)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>Microsoft ID プラットフォームに登録されている OAuth コンシューマーキー。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Consumer Secret (コンシューマーシークレット)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>コンシューマーキーに対応する OAuth コンシューマーシークレット。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>リスナー設定</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>アクセストークンコールバックエンドポイントを受信するリスナーの作成に使用する ​<code>&lt;http:listener-config /&gt;</code>​ への参照。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Callback Path (コールバックパス)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>アクセストークンコールバックエンドポイントのパス。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Authorize Path (認証パス)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>OAuth ダンスをトリガーするローカル HTTP エンドポイントのパス。</p>
</div></div></td>
</tr>
</tbody>
</table>

### [](#oauth2-client)OAuth 2.0 クライアントログイン情報許可による認証

**\[Global Element Properties (グローバル要素のプロパティ)\]**​ 画面の ​**\[General (一般)\]**​ タブで次の情報を入力し、OAuth 2.0 クライアントログイン情報許可による認証を設定します。

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 30%;">
<col style="width: 70%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">ユーザーアクション</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Name (名前)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>設定名を入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Connection (接続)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>[OAuth 2.0 Client Credentials (OAuth 2.0 クライアントログイン情報)]</strong>​ を選択します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Client Id (クライアント ID)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>サービスプロバイダーに登録されている OAuth クライアント ID。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Client Secret (クライアントシークレット)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>サービスプロバイダーに登録されている OAuth クライアント。</p>
</div></div></td>
</tr>
</tbody>
</table>

## [](#configure-other-fields)その他のコネクタ項目の設定

Outlook 365 Connector のグローバル要素を設定したら、コネクタの他の必須項目を設定します。必須項目は、使用するコネクタ操作によって異なります。

## [](#view-app-log)アプリケーションログの表示

問題を確認するため、アプリケーションログを次の方法で表示できます。

- アプリケーションを Anypoint Platform から実行している場合、アプリケーションログ出力は Anypoint Studio のコンソールウィンドウに表示されます。
- コマンドラインから Mule を使用してアプリケーションを実行している場合、アプリケーションログ出力は OS コンソールに表示されます。

アプリケーションのログファイル (​`log4j2.xml`​) でログファイルパスがカスタマイズされていない場合、デフォルトの場所 ​`MULE_HOME/logs/<app-name>.log`​ でアプリケーションログを表示することもできます。

## [](#関連情報)関連情報

- [Anypoint Connector の概要](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Anypoint Studio を使用したコネクタの設定](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Microsoft Outlook 365 Connector リファレンス](https://docs.mulesoft.com/jp/microsoft-outlook-365-connector/latest/microsoft-outlook-365-connector-reference)
- [MuleSoft ヘルプセンター](https://help.mulesoft.com)