You are on page 1of 6

Integration with SAP Cloud

This guide is about integrating a Salesforce org with SAP using the SAP Cloud Platform Open
Connectors.

Authenticate connector instance

The first step is to authenticate a connector instance with Salesforce Sales Cloud using the SAP
Cloud Platform Open Connectors. Below is a quick overview about how to authenticate:

Prerequisites:

(a) SAP Cloud Platform Open Connectors trial account


(https://blogs.sap.com/2018/09/19/part-1-enable-sap-cloud-platform-open-connectors-in-
trial/)
(b) SFDC developer account

1. In the SAP Cloud Platform Cockpit window, click on “Services” and select the “Open
connectors” service.

Figure 1: Services section in the SAP Cloud Platform Cockpit


2. Select “Go to Service”

Figure 2: Go to service location

3. Find Salesforce Sales Cloud in the Connectors Catalog, hover over the card, and
click Authenticate.

Figure 3: Salesforce Sales cloud connector


4. On the Create Instance page, enter a name for the instance, enable events by clicking
“Events Enabled”, and then select “webhook”.
Events are enabled whenever you want SAP Cloud Platform Open Connectors to monitor
any additions or changes made to the authenticated Salesforce org instance (Not covered
here).

Figure 4: Create instance setup window

In order to receive event notifications, in Event Notification Callback URL field enter:

https://api.openconnectors.us2.ext.hana.ondemand.com/elements/ap
i-v2/events/sfdc.

N.B: As the fields are being filled, cURL codes are automatically being generated

5. Click Create Instance, log in to Salesforce and allow the connection to SAP.
Figure 5: Salesforce Login Page

Figure 6: Access to org window

If the connection is successful, the following window is loaded.


Figure 7; Authenticated Salesforce instance

Using the Instance

1. Select “Test in the API docs”


You will then have different HTTP request methods available such as GET, POST and
DELETE. These methods can be used on any Salesforce object and also retrieve any
reports generated in the org.

Use case 1: Create a new “Account” record

2. The POST method is used to create a new record. Click on the “Try it out” button.
Enter the new account record details (in JSON format), as shown below and click on
execute to perform the insertion.

Figure 8: Enter account record details


Figure 9: Execute button

3. If the record is created successfully, a response in JSON format is obtained with the new
account record details. It is then possible to download the JSON file.

Figure 10: Response

Figure 11: New Account record created in Salesforce

You might also like