Integrate Salesforce to ServiceNow in minutes
Tags: integration, salesforce, servicenow, guide
Published: 2021-06-30 14:10:16

---
title: Integrate Salesforce to ServiceNow in minutes
published: true
date: 2021-06-18 09:32:26 UTC
tags: #integration, #salesforce, #servicenow, #guide
canonical_url: https://tech.forums.softwareag.com/t/integrate-salesforce-to-servicenow-in-minutes/242249
---

## Introduction

[webMethods.io](http://webMethods.io) Integration fasters business implementation of SaaS applications. Different systems can be integrated in few minutes time by leveraging the out of the box connectors provided in the platform.

In this article we will see how quickly in just few minutes we can integrate the Salesforce and ServiceNow applications.

## Audience

This document is intended for the users who wants to integrate Salesforce and ServiceNow using [webMethods.io](http://webMethods.io) platform

## Pre-Requisites

User should have access to

- Salesforce developer account ( Refer [Salesforce Developers](https://developer.salesforce.com/signup) )
- ServiceNow account ( Refer [Home | ServiceNow Developers](https://developer.servicenow.com/dev.do) )
- Active [webMethods.io](http://webMethods.io) subscription ( Refer [SOFTWARE AG Cloud](https://www.softwareag.cloud/site/index.html#/) )

## Use Case

Let’s see how we can integrate the Salesforce and ServiceNow applications with the below use case

- User creates case in the Salesforce platform,
- Create a new ServiceNow incident with the desired severity and details in the ServiceNow platform.
- Upon successful creation of ServiceNow incident, create a follow up task in the Salesforce platform.

Below is all we need to do

**Step 1: Create a New workflow in [webMethods.io](http://webMethods.io)**

![createWorkFlow](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/a/3/a3f945988d46c40fe9c9f69075120c6e34dbba88_2_690x258.png)

Rename the Workflow **“SalesforceToServiceNow”** and Click on _“Done”._

![renameWorkflow](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/f/8/f83dadf9fcda54cd2a6a6b623d4ac52bf291d9a7_2_511x500.png)

**Step 2: Configure the start trigger with Salesforce**

Click on Start trigger symbol and click on gear icon.

![WFstep1](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/b/6/b6348bb0915fab611b8e376fd1c152d8195ec083_2_690x290.png)

Search for out of the box _Salesforce_ connector, select the desired salesforce connector. In this sample am selecting the typical _Salesforce_ connector and click on _“Next”._

![wfstep2](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/3/a/3aabd7e615f59052012584866eff5ea1b8691386_2_684x500.png)

Provide the desired label for the trigger. Select the action on which the trigger needs to be activated.

In this use case, we will select the action as _“New Case”_. So that the workflow will be triggered whenever the new case is created in Salesforce.

![wfstep3](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/3/6/36f52a9ff94031192ad0d2cdc93c0a549af56bc8_2_687x500.png)

As a last step, configure the _Authorization._

Hover on the plus icon next to the “Authorize Salesforce” section in the dialogue. Authorization to Salesforce can be configured in two ways.

![wfstep5](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/0/2/02d0e33ef4be3da51cc9f207211199453560ac4e_2_683x500.png)

![wfstep6](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/f/5/f579b9ac7dcccc589e72f2a93c5cf7813c461d81_2_598x499.png)

**In the default authorization method** , [webMethods.io](http://webMethods.io) Integration platform generates necessary keys to access the account data. To do so, user need to grant the [webMethods.io](http://webMethods.io) Integration platform the relevant permissions.

This will take the user to the salesforce login page.

![wfstep7](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/1/8/18829081609deeaabc49454646dad50d61244552_2_690x270.png)

Provide salesforce user domain and click on Allow to give necessary permissions for [webMethods.io](http://webMethods.io) to access the Salesforce account.

Once the account is saved successfully Click on _“Save”._

![wfstep8](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/9/e/9efb5d563d7326c3fa24dbb0268510d2515c9c2d_2_677x500.png)

**Create account using service access token and other configurations**

If we have all the necessary token and account details required to create an account, we can choose the second method. To do this, click the + button and select the (Or) option.

A pop-up window will appear on screen, where user will be prompted to enter the relevant information required to create the Salesforce account.

[WebMethods.io](http://WebMethods.io) can connect to Salesforce using OAuth mechanism. Provide the required details in the pop-up for generating the OAuth token and hence connecting to Salesforce.

For more details on configuring Salesforce using OAuth, please refer the article [Salesforce OAuth Configuration in webMethods.io Integration and webMethods.io Flow Editor](https://tech.forums.softwareag.com/t/salesforce-oauth-configuration-in-webmethods-io-integration-and-webmethods-io-flow-editor/237390)

![wfstep9](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/c/9/c930d0cf92bdf2f320c6f5a3abb267b63c861f50_2_362x500.png)

Upon clicking on Save, there will be an option to test the trigger to see if configurations are fine.

![wfstep10](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/b/0/b0c90b98204d83f849b31eee3f2f6d849cf16a43_2_666x500.png)

If the configurations are fine, the below screen will be displayed with the corresponding Input/Output tabs. Click on _“Done”_.

Now we have completed configuring the Salesforce trigger.

![testSuccess](https://aws1.discourse-cdn.com/techcommunity/original/3X/f/4/f408ff451f22f1148e9a84f2e4fb8de039bf83b1.png)

**Note:**

The account configuration for the connectors can be done in two ways. The connectors account configured are available for all the workflows created under the specified project.

1. Directly add the connector to canvas and then configure the Authorization section (as shown in the previous section)
2. Configure the account under Projects → Connectors → Predefined section

![connectorConfig](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/0/8/086b11fc54d3fd031c68929650d6a73823ada25e_2_690x310.png)

**Step 3: Configure ServiceNow step**

After configuring the Salesforce as Start trigger, we will now add the ServiceNow connector which will take the input from the Salesforce trigger and then creates an incident in the ServiceNow platform.

![servicenOw](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/a/6/a6b6ab9bae6ac053d4e7e786e4d370d0f1d3de1e_2_690x299.png)

Search for ServiceNow in the right-hand side connectors search bar. Drag the ServiceNow connector on to the canvas next to Salesforce trigger.

The [webMethods.io](http://webMethods.io) automatically connects the Salesforce trigger and ServiceNow connector

![wfstep11](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/4/7/479a06302d10034f5b0e6dbfeb7f27a0d49ccb00_2_690x299.png)

Configure the ServiceNow connector by clicking on the gear icon which appears when we hover the ServiceNow connector

![wfstep13](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/6/6/66debb2b02eed2af88f4b955452c225b19b7dd78_2_690x273.png)

Provide the action that we want the ServiceNow to perform. In this case, we will select **“createIncident”** action.

![createIncident](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/e/1/e18d03b9c71c5674b06ad0e913218752b18aa6e5_2_429x500.png)

Configure the connection for ServiceNow instance. Click on plus icon next to _“Connect to ServiceNow”_

A pop-up window will appear asking for ServiceNow instance details. Provide the necessarily details and click on “Add”

![wfstep14](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/7/5/75f714a2edc06176c9157109338c194a8c30340b_2_362x500.png)

Once done, click on “Next”

![wfstep15](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/e/a/ea17174dac97c1e6e3aab70fcad49c65d2939d35_2_433x500.png)

Mapping screen will appear, where we can map the necessary parameters from the previous step, in this case Salesforce to ServiceNow _“createIncident”_ action.

![wfstep16](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/a/a/aafc25da28cd3a884cff4db37fc307213102760a_2_690x366.png)

Once Mapping is done, click on _“Next”_. We can test the configurations by clicking on _“Test”_ button.

![testServNow](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/d/f/dfa29d82adeff24a08e954768b522b7bde262e66_2_690x356.png)

Upon successful configuration, the below screen pops up. Click on _“Done”_

![Mesg](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/3/3/33ce11bef2526886c87abb2a84ab2d7cc5837ffd_2_690x358.png)

**Step 4: Configure Salesforce to create a follow up task after successfully creating the incident.**

Search for Salesforce connector in the right-hand side connector search bar. Drag the _“Salesforce CRM – REST”_ connector to canvas and connect it to ServiceNow. Also connect the connector to _“End”_ step as it’s the last step of our workflow.

![wfstep17](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/d/f/df606dddba3bb49598b198086d950eb8558a22ad_2_690x300.png)

Click on the gear icon on the _“Salesforce CRM – REST”_ connector. Select the required action _“Create Task”_ and configure the _Authorize_ section. Here we can use the same account we configured in Step 2 while creating the Salesforce trigger.

![wfstep18](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/6/a/6a0190e5c55fddcf8db9115544a4c5be6d46773a_2_437x500.png)

Click on _“Next”_, this will lead to mapping screen. Map the required parameters

![map](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/6/c/6cb505b78502fd4b4b2515dd702cfe1d8821941f_2_690x363.png)

Click on _“Next”._

Test the configuration by clicking on _“Test”_.

![wfstep19](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/2/4/247d635ecd3f7c5da5b70a6eea40b689351047b8_2_690x362.png)
  

![wfstep20](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/4/e/4eb02b37e1d7b044731ce7a92477766ae5719427_2_690x360.png)

Click on _“Done”_.

The complete workflow looks like below

![wfstep21](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/1/a/1a417b687dea44d71ba460bf1b59b38fe2ce84f8_2_690x325.png)

**Step 5: Test the entire workflow**

Now that we have configured all the steps needed for our usecase, we will test the entire workflow end to end.

The workflow will be triggered whenever a new case is created in Salesforce CRM.

_Create case in Salesforce_

![wfstep22](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/6/8/6895a3efbd050118fb89eba8691edda71fe02f56_2_690x330.png)

![wfstep23](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/1/6/168e46a238813ea0ff804d0e5b2bcfc49f4b3cff_2_690x123.png)

_This will initiate the workflow in [webMethods.io](http://webMethods.io)_

![wfstep24](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/5/8/586a198d13e8bf6e9d60b51b306ac6e70f0f156b_2_690x274.png)

_Corresponding Incident gets created in ServiceNow_

![wfstep25](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/0/1/01facb59fd0bc3a88e8533f2c607c7fbf305e327_2_690x324.png)

_After which task will be created in Salesforce._

![wfstep26](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/f/8/f87cd351557bba035f98401a621b701af7bd32db_2_690x198.png)
For more details on such integrations and connectors, please refer the [webmethods.io](http://webmethods.io) documentation at [Welcome - webMethods.io Integration](https://docs.webmethods.io/integration/starthere/home/#gsc.tab=0)

[Read full topic](https://tech.forums.softwareag.com/t/integrate-salesforce-to-servicenow-in-minutes/242249)