SAP Hybris C4C

The SAP Hybris C4C connector lets you perform insert, delete, update, and read operations on SAP Hybris data.

Supported versions

This connector supports Version 1.0 of SAP Cloud API.

Before you begin

In your Google Cloud project, do the following tasks:

  • Ensure that network connectivity is set up. For information about network patterns, seeNetwork connectivity.
  • Grant theroles/connectors.admin IAM role to the user configuring the connector.
  • Grant theroles/secretmanager.viewer androles/secretmanager.secretAccessor IAM roles to theservice account that you want to use for the connector.
  • Enable the following services:
    • secretmanager.googleapis.com (Secret Manager API)
    • connectors.googleapis.com (Connectors API)

    To understand how to enable services, seeEnabling services. If these services or permissions have not been enabled for your project previously, you are prompted to enable them when you configure the connector.

Configure the connector

A connection is specific to a data source. Itmeans that if you have many data sources, you must create a separate connectionfor each data source. To create a connection, do the following:

  1. In theCloud console, go to theIntegration Connectors > Connections page and then select or create a Google Cloud project.

    Go to the Connections page

  2. Click+ CREATE NEW to open theCreate Connection page.
  3. In theLocation section, choose the location for the connection.
    1. Region: Select a location from the drop-down list.

      For the list of all the supported regions, seeLocations.

    2. ClickNEXT.
  4. In theConnection Details section, complete the following:
    1. Connector: SelectSAP Hybris C4C from the drop down list of available Connectors.
    2. Connector version: Select the Connector version from the drop down list of available versions.
    3. In theConnection Name field, enter a name for the Connection instance.

      Connection names must meet the following criteria:

      • Connection names can use letters, numbers, or hyphens.
      • Letters must be lower-case.
      • Connection names must begin with a letter and end with a letter or number.
      • Connection names cannot exceed 49 characters.
    4. Optionally, enter aDescription for the connection instance.
    5. Optionally, enableCloud logging, and then select a log level. By default, the log level is set toError.
    6. Service Account: Select a service account that has therequired roles.
    7. Tenant: The SAP Cloud instance to which to establish the connection.
    8. Use Client Side Paging: To enable client-side paging in the ADO.NET provider for SAP Cloud, enable this option.
    9. Use Custom Service: To enable custom SAP Cloud OData service, enable this option.
    10. User Defined Views: Specify the file path to the JSON configuration file that contains your custom views.
    11. Optionally, configure theConnection node settings:

      • Minimum number of nodes: Enter the minimum number of connection nodes.
      • Maximum number of nodes: Enter the maximum number of connection nodes.

      A node is a unit (or replica) of a connection that processes transactions. More nodes are required to process more transactions for a connection and conversely, fewer nodes are required to process fewer transactions. To understand how the nodes affect your connector pricing, see Pricing for connection nodes. If you don't enter any values, by default the minimum nodes are set to 2 (for better availability) and the maximum nodes are set to 50.

    12. Note: You can customize the connection node values only if you are a Pay-as-you-go customer.
    13. (Optional) To configure a proxy server for the connection, selectUse proxy and enter the proxy details.
    14. Optionally, click+ ADD LABEL to add a label to the Connection in the form of a key/value pair.
    15. ClickNEXT.
  5. In theDestinations section, enter details of the remote host (backend system) you want to connect to.
    1. Destination Type: Select aDestination Type.

      If you want to establish a public connection to your backend systems with additional security, you can considerconfiguring static outbound IP addresses for your connections, and then configure your firewall rules to allowlist only the specific static IP addresses.

      To enter additional destinations, click+ADD DESTINATION.

    2. ClickNEXT.
  6. In theAuthentication section, enter the authentication details.
    1. Select anAuthentication type and enter the relevant details.

      The following authentication types are supported by the SAP Hybris C4C connection:

      • Username and password
    2. To understand how to configure these authentication types, seeConfigure authentication.

    3. ClickNEXT.
  7. Review: Review your connection and authentication details.
  8. ClickCreate.

Configure authentication

Enter the details based on the authentication you want to use.

  • Username and password
    • Username: Enter the username to authenticate to SAP Cloud.
    • Password: Specify the secret manager secret that contains the password associated with the SAP Cloud account.

Connection configuration samples

This section lists the sample values for the various fields that you configure when creating the connection.

Username and password connection type

Field nameDetails
Locationasia-east1
ConnectorSAP Hybris C4C
Connector version1
Connection Namesap-hybris-c4c-c4codataapi-conn
Enable Cloud LoggingYes
Service Accountmy-service-account@my-project.iam.gserviceaccount.com
Tenantmy335480.crm.ondemand.com
Minimum number of nodes2
Maximum number of nodes50
Host Addresshttps://192.0.2.0
AuthenticationUser Password
UsernameUSERNAME
PasswordPASSWORD
Secret version1

System limitations

The SAP Hybris C4C connector can process a maximum of 4 transactions per second, pernode, andthrottles any transactions beyond this limit. By default, Integration Connectors allocates 2 nodes (for better availability) for a connection.

For information on the limits applicable to Integration Connectors, seeLimits.

Note: The number ofIntegration Connectors nodes will autoscale dynamically based on your usage. However, if you want to reserve capacity for large volumes without waiting for autoscaling, you can adjust the minimum node value for a connection. More nodes are required to process more transactions for a connection. Conversely, fewer nodes are required if a connection processes fewer transactions. To configure the node values, do the following:
  • If you are a pay-as-you-go customer, configure the minimum and maximum node value in the edit connection page.
  • If you are a subscription based customer,contact support.

The maximum transactions that a node can handle depends on various factors. So, before adjusting the minimum nodes for better throughput, it is recommended you check if your backend systems are set up optimally to handle the required traffic.

Use the SAP Hybris C4C connection in an integration

After you create the connection, it becomes available in bothApigee Integration and Application Integration. You can use the connectionin an integration through the Connectors task.

  • To understand how to create and use the Connectors task in Apigee Integration, seeConnectors task.
  • To understand how to create and use the Connectors task in Application Integration, seeConnectors task.

Entity operation examples

This section shows how to perform some of the entity operations in this connector.

Example - List all the leads from the leads collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select LeadCollection from theEntity list.
  3. Select theLIST operation, and then clickDone.
  4. Task Input section of theConnectors task, you can set thefilterClause to filter records based on any column. You must pass the value for the filter clause within single quotes.

Example - Get a lead from the leads collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select LeadCollection from theEntity list.
  3. Select theGet operation, and then clickDone.
  4. Set the entity ID to "C1A464ABFE7D1EEFACB0E27B8F791046" which is the Key to be passed. To set the entity ID, intheData Mapper section of theData Mapping, clickOpen Data Mapping Editor andthen enter"C1A464ABFE7D1EEFACB0E27B8F791046" in theInput Value field and choose the EntityId as the local variable.
  5. Pass the value for the Entity ID directly, such as,"C1A464ABFE7D1EEFACB0E27B8F791046", which is the unique primary key value. If the entity has two composite keys, use the filter clause and pass the value, such as, ObjectID ='C1A464ABFE7D1EEFACB0E27B8F791046'

Example - Delete a lead from the leads collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select LeadCollection from theEntity list.
  3. Select theDelete operation, and then clickDone.
  4. Set the entity ID to "C1A464ABFE7D1EEFACB0E27B8F791046s" which is the key to be passed. To set the entity ID, intheData Mapper section of theData Mapping, clickOpen Data Mapping Editor andthen enter"C1A464ABFE7D1EEFACB0E27B8F791046" in theInput Value field and choose the EntityId as the local variable.

    If entity has two composite business or primary keys instead of specifying theentityId, you can also set thefilterClause toObjectID ='C1A464ABFE7D1EEFACB0E27B8F791046'.

Example - Create a lead in the leads collection

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectLeadCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    { "Name": "Googlecloud_Testing", "AccountPartyID": "8000000070" }

    If the integration is successful, theLeadCollection task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFAF8D279CA432116F" }

Example - Create an opportunity in the oppurtunities collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select OpportunityCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    { "Name": "Charlie", "ProspectPartyID": "1", "MainEmployeeResponsiblePartyID": "TESTUPDATEXYZ" }

    If the integration is successful, theOpportunityCollection task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFB0A6F0AD1ACA91B5" }

Example - Create a customer order in the item collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select CustomerOrderItemCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    { "Description": "This is Customer Order Collection", "ParentObjectID": "D3542BF960751EEFADE1140D7614A0C7", "ProductID": "128" }

    If the integration is successful, theCustomerOrderItemCollection task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFB1C28BC1781A71FE" }

Example - Create a contract in the contract collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select ContractCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    { "Name": "Contract Collection AK" }

    If the integration is successful, theContractCollection task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFAFF6ED3FF1EE119E" }

Example - Create a sales quote in the sales quote collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select SalesQuoteCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    { "Name": "Charlie Cruz" }

    If the integration is successful, theSalesQuoteCollection task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFAE8A044BF41C112F" }

Example - Create an individual customer in the customers collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select IndividualCustomerCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    { "RoleCode": "BUP002", "FirstName": "Charlie", "LastName": "Cruz" }

    If the integration is successful, theIndividualCustomerCollection task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFB0A0ECAD1B1691B5" }

Example - Create a corporate account in the account collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select CorporateAccountCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    { "Name": "Charlie S", "RoleCode": "CRM000" }

    If the integration is successful, theCorporateAccountCollection task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFB0901EC0786A51A9" }

Example - Create a partner in the partners collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select PartnerCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    { "HouseNumber": "B-5", "Name": "Charlie", "CountryCode": "US", "City": "Muzzfanagar", "StateCode": "AZ", "POBoxPostalCode": "12345", "StreetPostalCode": "56789", "POBox": "MS" }

    If the integration is successful, thePartnerCollection task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFB1CCA349FF68B204" }

Example - Create a competitor in the competitors collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select CompetitorCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    { "Name": "Charlie Cruz", "Phone": "1213446464" }

    If the integration is successful, theCompetitorCollection task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFAE82734673233121" }

Example - Create a business transaction document in the reference collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select OpportunityBusinessTransactionDocumentReferenceCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    {  "ParentObjectID": "07D09F6BEB401EEFB683B9BFCBD63CA1",  "OpportunityID": "11",  "ID": "17",  "TypeCode": "30",  "BusinessTransactionDocumentRelationshipRoleCode": "2"}

    If the integration is successful, theconnector task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFAE8A044BF41C112F" }

Example - Create an attachment in the oppurtunities collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select OpportunityAttachmentFolderCollection from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload as the local variable.
    {  "ParentObjectID": "0B7E0B7275361EEFB59B682026F83C0B",  "TypeCode": "10001",  "Name": "AttachMs.csv",  "MimeType": "text/csv",  "Binary": "c2FtcGxlIHRleHQgaW5zZXJ0"}

    If the integration is successful, theconnector task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    { "ObjectID": "C1A464ABFE7D1EEFAE8A044BF41C112F" }
  5. You can add files such as .png, .jpeg, .csv, .jpg, .pdf, .docx, .xlsx, .ppt, and .gif by changing its mime type and binary.

Example - Update a lead in the leads collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select LeadCollection from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.
    { "Name": "Charlie Cruz" }
  5. Set the entity ID in Data Mapper to the entity of the LeadCollection To set the entity ID, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.

    Instead of specifying theentityId, you can also set thefilterClause toid ='C1A464ABFE7D1EEFB0A54EA52EF251B5'.

    Running this example, returns a response similar to the following in the Connectortask'sconnectorOutputPayload output variable:

    { "ObjectID": "C1A464ABFE7D1EEFB0A54EA52EF251B5" }

Example - Update an opportunity in theopportunities collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select OpportunityCollection from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.
    { "Name": "Charlie Cruz", "ProspectPartyID": "1", "MainEmployeeResponsiblePartyID": "TESTUPDATEXYZ" }
  5. Set the entity ID in Data Mapper to the entity of the OpportunityCollection To set the entity ID, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.

    Instead of specifying theentityId, you can also set thefilterClause toid ='C1A464ABFE7D1EEFB0A6F0AD1ACA91B5'.

    Running this example, returns a response similar to the following in the Connectortask'sconnectorOutputPayload output variable:

    { "ObjectID": "C1A464ABFE7D1EEFB0A6F0AD1ACA91B5" }

Example - Update a sales quote in sales quote collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select SalesQuoteCollection from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.
    { "Name": "Charlie Cruz" }
  5. Set the entity ID in Data Mapper to the entity of the SalesQuoteCollection To set the entity ID, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.

    Instead of specifying theentityId, you can also set thefilterClause toid ='C1A464ABFE7D1EEFAE8A044BF41C112F'.

    Running this example, returns a response similar to the following in the Connectortask'sconnectorOutputPayload output variable:

    { "ObjectID": "C1A464ABFE7D1EEFAE8A044BF41C112F" }

Example - Update a contract in the contracts collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select ContractCollection from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.
    { "Name": "Updated Contract Collection" }
  5. Set the entity ID in Data Mapper to the entity of the ContractCollection To set the entity ID, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.

    Instead of specifying theentityId, you can also set thefilterClause toid ='C1A464ABFE7D1EEFAE8A044BF41C112F'.

    Running this example, returns a response similar to the following in the Connectortask'sconnectorOutputPayload output variable:

    { "ObjectID": "C1A464ABFE7D1EEFAFF6ED3FF1EE119E" }

Example - Update an individual customer in the customers collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select IndividualCustomerCollection from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.
    { "Email": "baklavainthebalkans@gmail.com", "Mobile": "7037251086" }
  5. Set the entity ID in Data Mapper to the entity of the IndividualCustomerCollection. To set the entity ID, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.

    Instead of specifying theentityId, you can also set thefilterClause toid ='C1A464ABFE7D1EEFB0A0ECAD1B1691B5'.

    Running this example, returns a response similar to the following in the Connectortask'sconnectorOutputPayload output variable:

    { "ObjectID": "C1A464ABFE7D1EEFB0A0ECAD1B1691B5" }

Example - Update a survey in the surveys collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select SurveyCollection from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.
    { "Name": "Updated survey from MS" }
  5. Set the entity ID in Data Mapper to the entity of the SurveyCollection To set the entity ID, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.

    Instead of specifying theentityId, you can also set thefilterClause toid ='C1A464ABFE7D1EEFB0EFB26D09DF91D4'.

    Running this example, returns a response similar to the following in the Connectortask'sconnectorOutputPayload output variable:

    { "ObjectID": "C1A464ABFE7D1EEFB0EFB26D09DF91D4" }

Example - Update a partner in the partners collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select PartnerCollection from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.
    { "City": "Paris" }
  5. Set the entity ID in Data Mapper to the entity of the PartnerCollection To set the entity ID, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.

    Instead of specifying theentityId, you can also set thefilterClause toid ='C1A464ABFE7D1EEFB1CCA349FF68B204'.

    Running this example, returns a response similar to the following in the Connectortask'sconnectorOutputPayload output variable:

    { "ObjectID": "C1A464ABFE7D1EEFB1CCA349FF68B204" }

Example - Update a service ticket in the service requests collection

  1. In theConfigure connector task dialog, clickEntities.
  2. Select ServiceRequestCollection from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.
    { "Name": "Charlie Cruz 3" }
  5. Set the entity ID in Data Mapper to the entity of the ServiceRequestCollection To set the entity ID, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose the EntityId/ConnectorInputPayload/FilterClause as the local variable.

    Instead of specifying theentityId, you can also set thefilterClause toid ='C1A464ABFE7D1EEFB0A358A79B9DD1B5'.

    Running this example, returns a response similar to the following in the Connectortask'sconnectorOutputPayload output variable:

    { "ObjectID": "C1A464ABFE7D1EEFB0A358A79B9DD1B5" }

Get help from the Google Cloud community

You can post your questions and discuss this connector in the Google Cloudcommunity atCloud Forums.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.