Integrating your Software Asset Management application with the Salesforce customer relationship management (CRM) services enable you to track your software subscriptions and to reclaim unused licenses.

Note:

If you’re using Software Asset Workspace, use SaaS Playbook for integrating your ServiceNow instance with the Salesforce CRM. For more information about creating a Salesforce CRM integration profile through Playbook, see Create a Salesforce CRM integration.

The supported Salesforce CRM services include
  • Salesforce Sales Cloud
  • Salesforce Service Cloud
  • Salesforce Platform
  • Salesforce Customer Community
  • Salesforce Partner Community
  • Salesforce Company Community
  • Salesforce Chatter
Both Salesforce Classic and Salesforce Lightning organizations are supported.
Note: You can track entitlements for other services that you pay for but aren’t user subscription based by using custom license metrics. See Add a custom license metric for more details on how to create a custom license metric.

The Salesforce account that you use to connect the integration requires a Salesforce user license and the following user access permissions.

Important: Minimize security risks and protect information by granting access only to the necessary user or API permissions.

For additional information on the Salesforce CRM services, see the Salesforce Developer Documentation.

Register a Salesforce application

Register an application through the Salesforce admin portal.

Before you begin

Salesforce Role required: admin

Procedure

  1. Log in to Salesforce.
    You can also switch from the Lightning UI.
  2. Select the setup icon Gear icon and then select Setup.
  3. Search for and select App Manager in the setup page search bar.
  4. On the App Manager page, select New Connected App.
  5. Select Create a Connected App to create an external client application.
  6. Select Continue.
  7. On the form, fill in the fields.
  8. Select Save.
  9. Select Continue.
  10. Copy the Consumer Key and Secret.
    1. Access the application that you created.
    2. In the API(Enable OAuth Settings) section, select Manage Consumer Details.
    The Consumer Key and Consumer Secret are displayed.
    Important: Save the Consumer Key and Consumer Secret in a secure location for later use and don’t share them.
  11. After you get Consumer Key and Consumer Secret, navigate to the previous tab and select Manage.
  12. Select Edit Policies.
    • Verify that the Permitted Users field is set to Admin approved users are pre-authorized for the ServiceNow application.
      Note: Admin-approved users who are preauthorized enable any users with the corresponding profile or permission set to access the application without prior authorization. For more information, see Pre-Authorize User App Access Through Connected App Policies.
    • Verify that the IP Relaxation field is set to Relax IP restrictions.
    • Verify that the Refresh token policy field is set to Refresh token is valid until revoked.
  13. Select Save.
  14. Scroll down to the Profiles section and select Manage Profiles.
  15. Select either the profile of the integration user or the profile of the user that you want to use for the integration.
  16. Select Save.

Create a Salesforce CRM integration profile

Create an integration profile to track software subscriptions and optimize licensing for the Salesforce CRM services.

Note: You must create Salesforce CRM integration only in the Global scope.

Create your first Salesforce CRM integration profile

Create an integration profile for the first Salesforce organization that you want to track software subscriptions and optimize licensing for.

Before you begin

To create a Salesforce CRM integration profile, request the Software Asset Management - SaaS License Management plugin (sn_sam_saas_int) from the ServiceNow Store.

ServiceNow Role required: sam_integrator or admin

About this task

If you’re using Software Asset Workspace, the option to create the Salesforce CRM integration profile in Core UI is inactive.

Procedure

  1. Navigate to the integration profile.
    InterfaceAction
    Core UI
    1. Navigate to All > Software Asset > SaaS License > Direct Integration Profiles.
    2. Select New.
    3. Select Salesforce CRM Integration Profile.
    Software Asset Workspace
    1. Navigate to License operations > User Subscriptions > Direct integration profiles.
    2. Select New.
    3. Select Salesforce CRM from the drop-down list.
    4. Select Continue.

      The Playbook launches for Salesforce CRM integration and the next steps aren't valid. For more information, see Create a Salesforce CRM integration.

  2. On the form, fill in the fields.
  3. On the Download Subscription Subflow tab, verify that the Subflow field is set to Salesforce CRM Download Subscriptions.
    You can view events performed by individual users up to one year prior to the current date. For more information, see Review a software reclamation rule.
    Note: Software Asset Management pulls the events from the time that you start downloading user subscriptions irrespective of the profile creation date.
  4. On the Reclaim Subscription Subflow tab, verify that the Subflow field is set to Salesforce CRM Reclaim Subscription.
  5. On the Download Consumption Subflow tab, verify that the Subflow field is set to Salesforce CRM Download Consumption.
  6. Select Save.
    Note: The Calculate Activity Subflow isn’t required for Salesforce CRM integrations because these integrations use information about last user logins from the user records.
    You can view consumption counts for the specific consumption based Salesforce CRM application.
  7. Open the connection & credential aliases record by selecting the preview icon (Preview icon.) next to the Connection & Credential field.
  8. Select Open Record in the record preview.
  9. On the Connection & Credential Aliases form, select the Create New Connection & Credential related link.
  10. In the Create Connection and Credential dialog box, fill in the fields.
  11. Select Create and Get OAuth Token.
    Note: For the role required to perform this step, refer to the Minimal user permissions table.
  12. In the OAuth2 dialog box, log in to the same Salesforce admin account that you used to create your Salesforce application.
    Tip: If the dialog box doesn’t open automatically, check to make sure that pop-ups are allowed on your browser.
    Your ServiceNow instance creates an OAuth token for Salesforce and then automatically returns you to the Integration Profile form.
  13. Select Publish.

Result

After you publish the integration profile, your ServiceNow instance begins retrieving data from your Salesforce CRM services. For organizations with fewer than 100 users, this process typically takes only a few minutes to complete. For organizations with 100–5000 users, this process can take around 15 minutes to complete. For organizations with over 5000 users, this process can take over one hour to complete.

What to do next

After the integration connects, your ServiceNow instance automatically creates software models, reclamation rules, and software subscriptions that are refreshed daily.

If you want to set up multiple integration profiles with unique connections, create child aliases to manage different configurations and settings for each integration profile. For more information, see Create a child alias to set up multiple integration profiles.

Review all automatically generated reclamation rules to reclaim user subscriptions. For more information, see Review a software reclamation rule.

Create software entitlements for the automatically generated software models to track used software against owned software.
Reconciliation also runs on your subscriptions as a scheduled job or on-demand. You can view your reconciliation results in the License Workbench (Software Asset Management classic application) or the License usage view (Software Asset Workspace). Use these results to determine your license compliance position and to remediate any non-compliance.

Create additional Salesforce CRM integration profiles

Create an integration profile for each additional Salesforce organization that you want to track software subscriptions and optimize licensing for.

Before you begin

To create a Salesforce CRM integration profile, request the Software Asset Management - SaaS License Management plugin (sn_sam_saas_int) from the ServiceNow Store.

ServiceNow Role required: sam_integrator or admin

About this task

If you’re using Software Asset Workspace, the option to create the Salesforce CRM integration profile in Core UI is inactive.

Procedure

  1. Navigate to the integration profile.
    InterfaceAction
    Core UI
    1. Navigate to All > Software Asset > SaaS License > Direct Integration Profiles.
    2. Select New.
    3. Select Salesforce CRM Integration Profile.
    Software Asset Workspace
    1. Navigate to License operations > User Subscriptions > Direct integration profiles.
    2. Select New.
    3. Select Salesforce CRM from the drop-down list.
    4. Select Continue.

      The Playbook launches for Salesforce CRM integration and the next steps aren't valid. For more information, see Create a Salesforce CRM integration.

  2. On the form, fill in the fields.
    Table 5. Integration Profile form
    Field Description
    Display name Name of the integration profile.
    Enter a name that uniquely identifies the Salesforce organization for which you’re creating this integration profile. For example, SFDC Org2.
    Tip: Keep this name short to help it display better during reporting.
    Status Status of the integration profile.
    • If you have not published the integration profile, this field is automatically set to Draft.
    • If you have already published the integration profile, this field is automatically set to Published.
    Profile type Type of integration profile. This value is automatically set to Salesforce CRM.
  3. On the Download Subscription Subflow tab, verify that the Subflow field is set to Salesforce CRM Download Subscriptions.
    You can view events performed by individual users up to one year prior to the current date. For more information, see Review a software reclamation rule.
    Note: Software Asset Management pulls the events from the time that you start downloading user subscriptions irrespective of the profile creation date.
  4. On the Reclaim Subscription Subflow tab, verify that the Subflow field is set to Salesforce CRM Reclaim Subscription.
  5. On the Download Consumption Subflow tab, verify that the Subflow field is set to Salesforce CRM Download Consumption.
  6. Select Save.
    Note: The Calculate Activity subflow isn’t required for Salesforce CRM integrations because these integrations use information about last user logins from the user records.
    You can view consumption counts for the specific consumption based Salesforce CRM application.
  7. Select the preview icon (Preview icon.) next to the Connection & Credential field to open the connection & credential aliases record.
  8. Select Open Record in the record preview.
  9. On the Connection & Credential Aliases form, create a child alias that can uniquely identify the connection and credentials for this integration profile.
    The first Salesforce CRM integration profile that you create uses the default (parent) connection and credential alias for Salesforce. Each additional Salesforce CRM integration profile that you create requires a unique child alias that helps differentiate the connection and credentials between each integration profile.
    1. Select the link under Child Aliases > Parentalias=*** to add child aliases.
    2. Select New.
      The Connection & Credential Aliases form for the child alias opens.
    3. Enter a name for the child alias in the Name field.
    4. Select and hold (or right-click) the form header and then select Save.
    5. After the form reloads, select the Create New Connection & Credential related link.
    6. In the Create Connection and Credential dialog box, fill in the fields.
    7. Select Create and Get OAuth Token.
      Note: For the role required to perform this step, refer to the Minimal user permissions table.
    8. In the OAuth2 dialog box, log in to the same Salesforce admin account that you used to register your Salesforce application.
      Tip: If the dialog box doesn’t open automatically, check to make sure that pop-ups are allowed on your browser.
      Your ServiceNow instance creates an OAuth token for Salesforce and then automatically returns you to the Connection & Credential Aliases form.
  10. Return to your integration profile by navigating to SaaS License > Administration > Direct Integration Profiles and then selecting the profile from the Integration Profiles list.
  11. In the Connection & Credential field of the Integration Profile form, select the lookup icon to locate and select the child alias that you created in step 8.
    Selecting the child alias associates the alias with the integration profile. Your ServiceNow instance uses this alias to identify the connection and credentials for this integration profile.
  12. Select Publish.

Result

After you publish the integration profile, your ServiceNow instance begins retrieving data from your Salesforce CRM services. For organizations with fewer than 100 users, this process typically takes only a few minutes to complete. For organizations with 100-5000 users, this process can take around 15 minutes to complete. For organizations with over 5000 users, this process can take over one hour to complete.

What to do next

After the integration connects, your ServiceNow instance automatically creates software models, reclamation rules, and software subscriptions that are refreshed daily.

If you want to set up multiple integration profiles with unique connections, create child aliases to manage different configurations and settings for each integration profile. For more information, see Create a child alias to set up multiple integration profiles.

Review all automatically generated reclamation rules to reclaim user subscriptions. For more information, see Review a software reclamation rule.

Create software entitlements for the automatically generated software models to track used software against owned software.
Reconciliation also runs on your subscriptions as a scheduled job or on-demand. You can view your reconciliation results in the License Workbench (Software Asset Management classic application) or the License usage view (Software Asset Workspace). Use these results to determine your license compliance position and to remediate any non-compliance.