---
title: Salesforce
description: Follow these steps to configure OpenLM to monitor license usage and retrieve statistics from Salesforce.
product: OpenLM Platform
---

# Salesforce

OpenLM で Salesforce のライセンス使用状況および統計を収集するための設定手順は以下のとおりです。

## はじめに

開始前に、次が揃っていることを確認してください。

- OpenLM Platform。
- Salesforce と同じマシンにインストールされ、[Broker Hub](https://openlm.com/documentation/ja/cloud/data-collection/broker-hub) で承認された OpenLM Broker v25.x 以降。

1. A Salesforce account

1. Salesforce API credentials (Consumer Key and Consumer Secret) generated through a Connected AppRefer to Salesforce's official guide:How to generate Consumer Key and Consumer Secret of a Connected App - Salesforce

*Connected App 作成時に API OAuth 設定を有効化し、Full OAuth スコープを選択します。設定後、Manage Consumer Details にアクセスし、Consumer Key と Consumer Secret を取得して保存します。*

    Activate the API OAuth setting and select Full OAuth scope when creating the Connected App. After setup, access Manage Consumer Details to retrieve and save your Consumer Key and Consumer Secret.

*監視機能*

    | Item | Value |
    | --- | --- |
    | LM Type in the Broker | Salesforce |
    | License totals | Yes |
    | License usage | Yes |
    | Denials | No |
    | Borrowing | No |
    | Expiration date | Yes |
    | Redundancy | No |
    | Report resolution | Depends on API polling |

    Using the Broker also allows buffered communication and allows remote start and stop of the license manager service.

## OpenLM Broker の設定

*OpenLM と Salesforce の連携の概要*

本手順の前提として、OpenLM Broker をインストールし、OpenLM への報告設定を完了しておきます。

### 手動で追加
1. Broker Web UI を開きます： http://localhost:5090. 既定のポートが使用中の場合は 5091 または 5092 を使用します。

1. **License Managers** → **Add License Manager** を開きます。

    *ドロップダウンリストから次を選択します： Salesforce, enter any port number (required for setup even if unused), and **Add** をクリックします.*
*ドロップダウンリストから次を選択します： Salesforce, enter any port number (required for setup even if unused), and **Add** をクリックします.*

1. Go to Vendors and optionally add Salesforce as the vendor.

1. Open the Advanced tab, click the Edit (pen) icon, and fill in:
    - clientId = Salesforce Consumer Key
    - clientSecret = Salesforce Consumer Secret
    - username = Salesforce username
    - password = Salesforce password

1. **Save** をクリックします。

## OpenLM Platform で Salesforce を承認

1. OpenLM Platform にサインインします。
2. メニューから **License Servers** → **Pending Server** を開きます。
3. Salesforce ライセンスマネージャーを選択し、**Approve and Merge** をクリックします。

## 連携の検証

1. OpenLM Platform で **License Servers Live** → **Server Statistics** を開きます。
2. Salesforce が緑のステータスで表示されることを確認します。

:::note
新規接続の場合、ステータスの反映まで最大 3 分かかります。
:::
