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, see Network connectivity.
- Grant the roles/connectors.admin IAM role to the user configuring the connector.
- Grant the
roles/secretmanager.viewer
androles/secretmanager.secretAccessor
IAM roles to the service 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, see Enabling 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. It means that if you have many data sources, you must create a separate connection for each data source. To create a connection, do the following:
- In the Cloud console, go to the Integration Connectors > Connections page and then select or create a Google Cloud project.
- Click + CREATE NEW to open the Create Connection page.
- In the Location section, choose the location for the connection.
- Region: Select a location from the drop-down list.
For the list of all the supported regions, see Locations.
- Click NEXT.
- Region: Select a location from the drop-down list.
- In the Connection Details section, complete the following:
- Connector: Select SAP Hybris C4C from the drop down list of available Connectors.
- Connector version: Select the Connector version from the drop down list of available versions.
- In the Connection 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.
- Optionally, enter a Description for the connection instance.
- Optionally, enable Cloud logging,
and then select a log level. By default, the log level is set to
Error
. - Service Account: Select a service account that has the required roles.
- Tenant: The SAP Cloud instance to which to establish the connection.
- Use Client Side Paging: To enable client-side paging in the ADO.NET provider for SAP Cloud, enable this option.
- Use Custom Service: To enable custom SAP Cloud OData service, enable this option.
- User Defined Views: Specify the file path to the JSON configuration file that contains your custom views.
- Optionally, configure the Connection 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.
- (Optional) To configure a proxy server for the connection, select Use proxy and enter the proxy details.
-
Proxy Auth Scheme: Select the authentication type to authenticate with the proxy server. The following authentication types are supported:
- Basic: Basic HTTP authentication.
- Digest: Digest HTTP authentication.
- Proxy User: A user name to be used to authenticate with the proxy server.
- Proxy Password: The Secret manager secret of the user's password.
-
Proxy SSL Type: The SSL type to use when connecting to the proxy server. The following authentication types are supported:
- Auto: Default setting. If the URL is an HTTPS URL, then the Tunnel option is used. If the URL is an HTTP URL, then the NEVER option is used.
- Always: The connection is always SSL enabled.
- Never: The connection is not SSL enabled.
- Tunnel: The connection is through a tunneling proxy. The proxy server opens a connection to the remote host and traffic flows back and forth through the proxy.
- In the Proxy Server section, enter details of the proxy server.
- Click + Add destination.
- Select a Destination Type.
- Host address: Specify the hostname or IP address of the destination.
If you want to establish a private connection to your backend system, do the following:
- Create a PSC service attachment.
- Create an endpoint attachment and then enter the details of the endpoint attachment in the Host address field.
- Host address: Specify the hostname or IP address of the destination.
- Optionally, click + ADD LABEL to add a label to the Connection in the form of a key/value pair.
- Click NEXT.
- In the Destinations section, enter details of the remote host (backend system) you want to connect to.
- Destination Type: Select a Destination Type.
- Select Host address from the list to specify the hostname or IP address of the destination.
- If you want to establish a private connection to your backend systems, select Endpoint attachment from the list, and then select the required endpoint attachment from the Endpoint Attachment list.
If you want to establish a public connection to your backend systems with additional security, you can consider configuring 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.
- Click NEXT.
- Destination Type: Select a Destination Type.
-
In the Authentication section, enter the authentication details.
- Select an Authentication type and enter the relevant details.
The following authentication types are supported by the SAP Hybris C4C connection:
- Username and password
- Click NEXT.
To understand how to configure these authentication types, see Configure authentication.
- Select an Authentication type and enter the relevant details.
- Review: Review your connection and authentication details.
- Click Create.
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 name | Details |
---|---|
Location | asia-east1 |
Connector | SAP Hybris C4C |
Connector version | 1 |
Connection Name | sap-hybris-c4c-c4codataapi-conn |
Enable Cloud Logging | Yes |
Service Account | my-service-account@my-project.iam.gserviceaccount.com |
Tenant | my335480.crm.ondemand.com |
Minimum number of nodes | 2 |
Maximum number of nodes | 50 |
Host Address | https://192.0.2.0 |
Authentication | User Password |
Username | USERNAME |
Password | PASSWORD |
Secret version | 1 |
System limitations
The SAP Hybris C4C connector can process a maximum of 4 transactions per second, per node, and throttles 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, see Limits.
Use the SAP Hybris C4C connection in an integration
After you create the connection, it becomes available in both Apigee Integration and Application Integration. You can use the connection in an integration through the Connectors task.
- To understand how to create and use the Connectors task in Apigee Integration, see Connectors task.
- To understand how to create and use the Connectors task in Application Integration, see Connectors 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
- In the
Configure connector task
dialog, clickEntities
. - Select LeadCollection from the
Entity
list. - Select the
LIST
operation, and then click Done. - Task Input section of the Connectors task, you can set the filterClause 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
- In the
Configure connector task
dialog, clickEntities
. - Select LeadCollection from the
Entity
list. - Select the
Get
operation, and then click Done. - Set the entity ID to "C1A464ABFE7D1EEFACB0E27B8F791046" which is the Key to be passed. To set the entity ID, in
the Data Mapper section of the Data Mapping, click Open Data Mapping Editor and
then enter
"C1A464ABFE7D1EEFACB0E27B8F791046"
in the Input Value field and choose the EntityId as the local variable.
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
- In the
Configure connector task
dialog, clickEntities
. - Select LeadCollection from the
Entity
list. - Select the
Delete
operation, and then click Done. - Set the entity ID to "C1A464ABFE7D1EEFACB0E27B8F791046s" which is the key to be passed. To set the entity ID, in
the Data Mapper section of the Data Mapping, click Open Data Mapping Editor and
then enter
"C1A464ABFE7D1EEFACB0E27B8F791046"
in the Input Value field and choose the EntityId as the local variable.If entity has two composite business or primary keys instead of specifying the entityId, you can also set the filterClause to
ObjectID ='C1A464ABFE7D1EEFACB0E27B8F791046'
.
Example - Create a lead in the leads collection
- In the
Configure connector task
dialog, clickEntities
. - Select
LeadCollection
from theEntity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the
LeadCollection
task'sconnectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFAF8D279CA432116F" }
Example - Create an opportunity in the oppurtunities collection
- In the
Configure connector task
dialog, clickEntities
. - Select OpportunityCollection from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the
OpportunityCollection
task'sconnectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFB0A6F0AD1ACA91B5" }
Example - Create a customer order in the item collection
- In the
Configure connector task
dialog, clickEntities
. - Select CustomerOrderItemCollection from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the
CustomerOrderItemCollection
task'sconnectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFB1C28BC1781A71FE" }
Example - Create a contract in the contract collection
- In the
Configure connector task
dialog, clickEntities
. - Select ContractCollection from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the
ContractCollection
task'sconnectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFAFF6ED3FF1EE119E" }
Example - Create a sales quote in the sales quote collection
- In the
Configure connector task
dialog, clickEntities
. - Select SalesQuoteCollection from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the
SalesQuoteCollection
task'sconnectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFAE8A044BF41C112F" }
Example - Create an individual customer in the customers collection
- In the
Configure connector task
dialog, clickEntities
. - Select IndividualCustomerCollection from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the
IndividualCustomerCollection
task'sconnectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFB0A0ECAD1B1691B5" }
Example - Create a corporate account in the account collection
- In the
Configure connector task
dialog, clickEntities
. - Select CorporateAccountCollection from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the
CorporateAccountCollection
task'sconnectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFB0901EC0786A51A9" }
Example - Create a partner in the partners collection
- In the
Configure connector task
dialog, clickEntities
. - Select PartnerCollection from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the
PartnerCollection
task'sconnectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFB1CCA349FF68B204" }
Example - Create a competitor in the competitors collection
- In the
Configure connector task
dialog, clickEntities
. - Select CompetitorCollection from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the
CompetitorCollection
task'sconnectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFAE82734673233121" }
Example - Create a business transaction document in the reference collection
- In the
Configure connector task
dialog, clickEntities
. - Select OpportunityBusinessTransactionDocumentReferenceCollection from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFAE8A044BF41C112F" }
Example - Create an attachment in the oppurtunities collection
- In the
Configure connector task
dialog, clickEntities
. - Select OpportunityAttachmentFolderCollection from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ "ObjectID": "C1A464ABFE7D1EEFAE8A044BF41C112F" }
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
- In the
Configure connector task
dialog, clickEntities
. - Select LeadCollection from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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" }
- Set the entity ID in Data Mapper to the entity of the LeadCollection To set the entity ID, click
Open 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 the entityId, you can also set the filterClause to
id ='C1A464ABFE7D1EEFB0A54EA52EF251B5'
.Running this example, returns a response similar to the following in the Connector task's
connectorOutputPayload
output variable:{ "ObjectID": "C1A464ABFE7D1EEFB0A54EA52EF251B5" }
Example - Update an opportunity in theopportunities collection
- In the
Configure connector task
dialog, clickEntities
. - Select OpportunityCollection from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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" }
- Set the entity ID in Data Mapper to the entity of the OpportunityCollection To set the entity ID, click
Open 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 the entityId, you can also set the filterClause to
id ='C1A464ABFE7D1EEFB0A6F0AD1ACA91B5'
.Running this example, returns a response similar to the following in the Connector task's
connectorOutputPayload
output variable:{ "ObjectID": "C1A464ABFE7D1EEFB0A6F0AD1ACA91B5" }
Example - Update a sales quote in sales quote collection
- In the
Configure connector task
dialog, clickEntities
. - Select SalesQuoteCollection from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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" }
- Set the entity ID in Data Mapper to the entity of the SalesQuoteCollection To set the entity ID, click
Open 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 the entityId, you can also set the filterClause to
id ='C1A464ABFE7D1EEFAE8A044BF41C112F'
.Running this example, returns a response similar to the following in the Connector task's
connectorOutputPayload
output variable:{ "ObjectID": "C1A464ABFE7D1EEFAE8A044BF41C112F" }
Example - Update a contract in the contracts collection
- In the
Configure connector task
dialog, clickEntities
. - Select ContractCollection from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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" }
- Set the entity ID in Data Mapper to the entity of the ContractCollection To set the entity ID, click
Open 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 the entityId, you can also set the filterClause to
id ='C1A464ABFE7D1EEFAE8A044BF41C112F'
.Running this example, returns a response similar to the following in the Connector task's
connectorOutputPayload
output variable:{ "ObjectID": "C1A464ABFE7D1EEFAFF6ED3FF1EE119E" }
Example - Update an individual customer in the customers collection
- In the
Configure connector task
dialog, clickEntities
. - Select IndividualCustomerCollection from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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" }
- Set the entity ID in Data Mapper to the entity of the IndividualCustomerCollection. To set the entity ID, click
Open 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 the entityId, you can also set the filterClause to
id ='C1A464ABFE7D1EEFB0A0ECAD1B1691B5'
.Running this example, returns a response similar to the following in the Connector task's
connectorOutputPayload
output variable:{ "ObjectID": "C1A464ABFE7D1EEFB0A0ECAD1B1691B5" }
Example - Update a survey in the surveys collection
- In the
Configure connector task
dialog, clickEntities
. - Select SurveyCollection from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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" }
- Set the entity ID in Data Mapper to the entity of the SurveyCollection To set the entity ID, click
Open 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 the entityId, you can also set the filterClause to
id ='C1A464ABFE7D1EEFB0EFB26D09DF91D4'
.Running this example, returns a response similar to the following in the Connector task's
connectorOutputPayload
output variable:{ "ObjectID": "C1A464ABFE7D1EEFB0EFB26D09DF91D4" }
Example - Update a partner in the partners collection
- In the
Configure connector task
dialog, clickEntities
. - Select PartnerCollection from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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" }
- Set the entity ID in Data Mapper to the entity of the PartnerCollection To set the entity ID, click
Open 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 the entityId, you can also set the filterClause to
id ='C1A464ABFE7D1EEFB1CCA349FF68B204'
.Running this example, returns a response similar to the following in the Connector task's
connectorOutputPayload
output variable:{ "ObjectID": "C1A464ABFE7D1EEFB1CCA349FF68B204" }
Example - Update a service ticket in the service requests collection
- In the
Configure connector task
dialog, clickEntities
. - Select ServiceRequestCollection from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Data Mapper section of the Data Mapping task, click
Open 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" }
- Set the entity ID in Data Mapper to the entity of the ServiceRequestCollection To set the entity ID, click
Open 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 the entityId, you can also set the filterClause to
id ='C1A464ABFE7D1EEFB0A358A79B9DD1B5'
.Running this example, returns a response similar to the following in the Connector task's
connectorOutputPayload
output variable:{ "ObjectID": "C1A464ABFE7D1EEFB0A358A79B9DD1B5" }
Get help from the Google Cloud community
You can post your questions and discuss this connector in the Google Cloud community at Cloud Forums.What's next
- Understand how to suspend and resume a connection.
- Understand how to monitor connector usage.
- Understand how to view connector logs.