Scope
Learn the steps to interface Salesforce with OpenLM. The aim is to monitor the usage and obtain license statistics.
Requirements
To query Salesforce, the following components must be present:
- An OpenLM SLMC account or OpenLM Server v24 or higher installed on a machine in your organization.
- OpenLM Broker v24.6 or higher installed on a machine in your network and connected to the OpenLM Server.
- A Salesforce account.
- Follow Salesforce’s official guide to generate the necessary Consumer Key and Consumer Secret: How to generate Consumer Key and Consumer Secret of a Connected App – Salesforce
Note: besides the Salesforce required information (marked in red),
you need to enable the API OAuth setting and select Full OAuth scope, which is necessary to interface OpenLM with Salesforce.
When the process is completed, access the Manage Consumer Details to see the Consumer Key and Consumer ID. Save those for later usage.
OpenLM Broker configuration
Configure the OpenLM Broker to monitor Salesforce using Broker UI
- Access your Broker UI in Chrome/Edge/Firefox, e.g.: http://localhost:5090/.
- Navigate to the License Managers tab → Add License Manager. A pop-up appears:
- From the drop-down list, select LM, type Salesforce, and enter the Port number. Although the port number is not used for capturing data, it must be defined as it is required by the Server for Licensing purposes.
- Click ADD. The Salesforce configuration screen appears, showing the Commands tab.
- Switch to the Vendors tab and enter the Salesforce as a vendor (not mandatory).
- Switch to the Advanced tab. Hover over the row for the pen icon to appear and click on it to input the following values:
clientId, which corresponds to Consumer ID in Salesforce;
clientSecret, which corresponds to Consumer Secret in Salesforce;
password – Salesforce password;
username – Salesforce username; - Click SAVE.
OpenLM Server configuration
If you followed the steps in the section above, the OpenLM Broker should now transmit data to the OpenLM Server. The final step is to approve the configuration in EasyAdmin:
- Open the EasyAdmin interface either by accessing http://<OpenLM Server IP>:5015/ in your browser or through Windows Start → OpenLM → OpenLM EasyAdmin User Interface.
- In the License Servers window, click on the Servers pending approval.
- Click on the Salesforce Server entry displayed as OpenLM Generic (check the port entered) and click Approve.
Optionally, you can add data such as Country, Usage Scope, and Description.
At this point, the Salesforce has been automatically added to the OpenLM Server, and configuration is complete.
How to verify your SalesforceLicense Monitor configuration
To check if the Salesforce is being monitored correctly:
- Open the EasyAdmin User Interface.
- Click EasyAdmin Start → Widgets → License Servers. Verify that the configured license manager(s) appears in the server list. A green circle node indicates an active connection to the license server.
Please note that if this is a new connection, it may take up to 3 minutes for the status indicator to change.