## 5.6.3  Extending SAP Marketing Cloud in the Cloud Foundry and Kyma Environment
## Overview
##  Note
The SAP S/4HANA Cloud Extensibility service is also availаble for global accounts marked with EU Access. See Regions.
SAP BTP offers a standard way for extending SAP solutions.
You can extend SAP Marketing Cloud in the Cloud Foundry or the Kyma environment without disrupting the performance and the core processes. When building extension applications, you can also benefit from the automation of the integration between the cloud platform and SAP Marketing Cloud.
##  Note
The content in this section is not relevant for China (Shanghai) and Government Cloud (US) regions.
The following graphic provides a high-level overview of the integration between SAP BTP and SAP Marketing Cloud:
<!-- image -->
## Process Flow
To integrate SAP BTP and SAP Marketing Cloud so that you can build extension applications, you have to use the SAP S/4HANA Cloud Extensibility service. All the steps are the same from the SAP BTP side. You register an SAP Marketing Cloud system in the SAP BTP cockpit. Then, you take the generated token and use it to configure the connectivity on the SAP Marketing Cloud side. These are the tasks you need to follow:
Integrating SAP BTP and SAP Marketing Cloud
| Process Step                                                                                                                                                                                                                                                                                                                                                  | Related Documentation                                                                                                                                                                                                                                                                                |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1. Connect the SAP Marketing Cloud system you want to extend with the corresponding global ac- count in SAP BTP. During the pairing process you create an registra- tion token which is then used by the SAP Market- ing Cloud system tenant administrator to config- ure the integration on the SAP Marketing Cloud system side.                             | Register an SAP Marketing Cloud System in a Global Account in SAP BTP [page 2053]  Note You cannot migrate the registered SAP Marketing Cloud systems between global accounts. If you want to start using another global account, you will have to register your SAP Marketing Cloud systems again. |
| 2. Make the SAP Marketing Cloud system accessi- ble in the subaccounts in SAP BTP in which you want to build your extension applications. To do so, you configure the entitlements and as- sign the corresponding quota and service plans to the subaccounts where the extension applications will reside for the system you registered in the previous step. | Configure the Entitlements for the SAP S/4HANA Cloud Extensibility Service [page 2114]                                                                                                                                                                                                               |
3. Configure the communication flow.
You have the following options:
- •
- Consume the SAP Marketing Cloud APIs (inbound connection) or consume APIs exposed by the extension application from SAP S/4 HANA Cloud (outbound connection) To do so, you create a service instance of the SAP S/4HANA Cloud Extensibility service using the api-access service plan. During the service instance creation an HTTP destination on a subaccount level is automatically generated in this subaccount. It contains all instance binding properties which are sufficient to establish connection to the SAP Marketing Cloud system. When creating the service instance, you configure the communication arrangement and the authentication type for the connection. The following authentication scenarios for SAP Marketing Cloud are supported:
- Basic Authentication (inbound and outbound connections)
- OAuth 2.0 SAML Bearer Assertion (inbound connections)
- OAuth 2.0 Client Credentials (outbound Connections)
- No Authentication (outbound connections)
Both predefined and custom communication scenarios are supported.
- Enable the consumption of SAP Marketing Cloud events.
If you want to create event-based extensions for SAP Marketing Cloud using the SAP Enterprise Messaging service, you have to create a service instance of the SAP S/ 4HANA Cloud Extensibility service using the messaging service plan.
- A combination of both
## Related Documentation
- Creating a Service Instance to Consume the SAP S/4HANA Cloud APIs [page 2115]
- Enable the Consumption of SAP S/4HANA Cloud Events [page 2137]