15. How to Bulk Load Account and Contact Records via V4/integrateWithIMessage with the SkyvvaSalesforce Adapter
1. Overview
This tutorial shows how to load customer Accounts and their Contacts into Salesforce through SAP Integration Suite, using the SkyvvaSalesforce Receiver adapter with V4/integrateWithIMessage.
An enterprise resource planning (ERP) system stores customer data using different field names and structures from Salesforce. CPI Message Mapping converts its customer export into Account and Contact data. SKYVVA then uses the configured inbound interfaces to create new records or update existing ones based on their external IDs. This operation is called Upsert. It also links each Contact to its Account.
You will:
- Prepare the Account and Contact interfaces in Salesforce.
- Build an integration flow and map the ERP customer XML.
- Configure the receiver for
V4/integrateWithIMessage. - Send customer data from Postman and follow the load in SKYVVA and Salesforce.
Context Before You Start
Use this approach for an initial customer migration or a batch update that includes Accounts and their related Contacts. External IDs let repeated loads match existing records, while SKYVVA message monitoring helps you check processing results and investigate failed records.
Prepare a Salesforce org with SKYVVA installed, an integration user with access to Account, Contact, the SKYVVA message services and the required custom fields, and a Salesforce connection for the receiver. This walkthrough uses the adapter’s V4/integrateWithIMessage option and the Account/Contact setup shown below; use an adapter version that includes that option and supports the installed package. You also need access to SAP Integration Suite and credentials authorized to call the deployed HTTPS endpoint.
This example uses Integration SAP Cloud Integration, Account interface Account_CPI_V2BulkLoad_IN, and Contact interface Contact_CPI_V2BulkLoad_IN. Replace these names and the external ID fields with the values configured in your org.
How the Integration Flow Works
ERP customer XML / Postman
→ HTTPS Sender
→ Map ERP Customers to Accounts and Contacts
→ Request Reply: Load Accounts and Contacts
→ SkyvvaSalesforce Receiver (V2, V4/integrateWithIMessage)
→ SKYVVA Account and Contact interfaces
→ Salesforce Accounts with related Contacts
2. Prepare the SKYVVA Interfaces in Salesforce
Create the text fields Account.ERP_DEBTOR_ID__c and Contact.ERP_CONTACT_ID__c if they do not already exist. Mark each as an External ID and Unique, and grant the integration user access. These fields store customer and contact keys as text so leading zeros are preserved.
Create or open Integration SAP Cloud Integration. Configure two inbound interfaces under it: one for Account and one for Contact. The mapped payload identifies the Integration through fromSystem and the root Account interface through targetObject.
2.1 Account Interface
Configure the Account interface:
| Setting | Value |
|---|---|
| Interface Name | Account_CPI_V2BulkLoad_IN |
| Interface Direction | Inbound |
| Status | Deployed |
| Source/Target Name | Account |
| Processing Mode | Asynchronous |
| Operation Type | Upsert |
| External Mapping | Enabled |
| Salesforce External ID | ERP_DEBTOR_ID__c |
Save the Account interface with Status = Deployed. The Account external ID holds the ERP customer number. External Mapping uses the incoming Salesforce field API names to populate the Account fields.
Figure 1. Account external ID and External Mapping settings.
2.2 Contact Interface
Configure the Contact interface:
| Setting | Value |
|---|---|
| Interface Name | Contact_CPI_V2BulkLoad_IN |
| Interface Direction | Inbound |
| Status | Deployed |
| Source/Target Name | Contact |
| Processing Mode | Asynchronous |
| Operation Type | Upsert |
| External Mapping | Enabled |
| Internal Mapping | Enabled for the AccountId formula |
| Salesforce External ID | ERP_CONTACT_ID__c |
Save the Contact interface with Status = Deployed. Each Contact needs a stable external ID and the Salesforce ID of its parent Account. Use External Mapping for the Contact fields and a lookup formula to resolve AccountId from the ERP customer number.
Figure 2. Contact external ID with External Mapping and Internal Mapping enabled.
Open Data Mapping, map AccountId with the following formula, and save:
VLOOKUP(Account, Id, ERP_DEBTOR_ID__c, Account.ERP_DEBTOR_ID__c)
The Contact needs the Salesforce ID of its parent Account, but the ERP sends a customer number. This formula finds the Account with that customer number and puts its Salesforce ID into the Contact’s AccountId field.
| Formula part | Meaning |
|---|---|
Account | Search Salesforce Accounts. |
Id | Return the matching Account’s Salesforce ID. |
ERP_DEBTOR_ID__c | Match against this field on the saved Account. |
Account.ERP_DEBTOR_ID__c | Use the customer number carried in the incoming message, such as 0000006000. |
The dot in the last argument is part of the message field label: it means “the Account’s ERP customer number.” The adapter keeps this Account value alongside the Contact values so SKYVVA can find the parent. Keep the dotted source label exactly as it appears in message Data. The matching Account must exist when the Contact lookup runs; the lookup does not create it. Use your org’s actual Account external-ID field name if it differs from this example.
Figure 3. Resolve the Contact's AccountId from the ERP customer number.
2.3 Chain the Contact Interface
Create or verify an IChainedInterface relationship with Parent Interface = Account_CPI_V2BulkLoad_IN, Child Interface = Contact_CPI_V2BulkLoad_IN, Type = InBound, and Sequence Number = 1. The Account interface is the entry point; the relationship connects the Contact processing to its parent Account. Save this relationship before generating the Account/Contact target schema.
Figure 4. Inbound IChainedInterface relationship linking the Contact interface to its parent Account interface.
3. Create the Integration Flow
Create an integration flow named ERP Account and Contact Bulk Load. Add an HTTPS sender, Message Mapping, and Request Reply connected to a Salesforce receiver through the SkyvvaSalesforce adapter. Connect Request Reply to End so the caller receives the returned response.
Name the steps Message Mapping (Map ERP Customers to Accounts and Contacts) and Request Reply (Load Accounts and Contacts). Enter only the text in parentheses in General → Name. Figure 5 shows the same component layout with the default names Message Mapping 1 and Request Reply 1.
Figure 5. Integration flow layout with HTTPS, Message Mapping, Request Reply, the SkyvvaSalesforce receiver and End.
3.1 Configure Message Mapping
Open Map ERP Customers to Accounts and Contacts. Select the DEBMAS06 customer schema as the source and the Account/Contact schema generated for the Account Interface as the target. Generate the target schema from the prepared Account interface after saving the Contact relationship, then import the source and target schemas into the CPI mapping. The target root in Figure 6 is ISTRUCTURE_Account_CPI_V2BulkLoad_IN.
The source contains repeating IDOC elements. Each IDOC contains one customer segment, E1KNA1M, with repeating Contact segments, E1KNVKM. The generated target should contain repeating Account elements, each with its own Contact elements. Expand the Contact branch to verify the child structure before mapping its fields.
Connect the repeating structures first:
| Source | Target |
|---|---|
IDOC | Account |
E1KNA1M/E1KNVKM | Account/Contact |
Constant SAP Cloud Integration | fromSystem |
Constant Account_CPI_V2BulkLoad_IN | targetObject |
Map the customer fields below. Source paths are relative to E1KNA1M; target paths are relative to Account.
| Source | Target |
|---|---|
KUNNR | ERP_DEBTOR_ID__c |
NAME1 | Name |
STRAS | BillingStreet |
ORT01 | BillingCity |
PSTLZ | BillingPostalCode |
LAND1 | BillingCountry |
REGIO | BillingState |
TELF1 | Phone |
BRSCH | Industry |
Map the Contact fields below. Source paths are relative to each E1KNVKM; target paths are relative to its Account/Contact.
| Source | Target |
|---|---|
PRSNR + - + PARNR | ERP_CONTACT_ID__c |
NAMEV | FirstName |
NAME1 | LastName |
TELF1 | Phone |
SMTP_ADDR | Email |
For the Contact external ID, concatenate PRSNR (the SAP address-management person number), a hyphen, and PARNR (the Contact person number), such as 0001004511-0001. Both fields belong to the same E1KNVKM Contact segment, so no parent customer number needs to be repeated. This example requires both values to be populated and their combination to remain stable and unique in the source system. Each Contact also needs NAME1, which maps to Salesforce’s required LastName field. Confirm those rules with your SAP team before using this key for business loads. Keep KUNNR as the Account external ID and as the parent lookup value. Changing the Contact key formula after loading records requires reconciling existing external IDs to avoid duplicates.
Set the fromSystem and targetObject constants explicitly; generated schemas may contain defaults from another org. Keep each Contact under its own Account when mapping the repeating structures.
Keep customer numbers, Contact keys, and postal codes as strings to preserve leading zeros. Map country, state, and industry values to the values accepted by your Salesforce org when the source codes differ. Save the mapping.
Figure 6. DEBMAS06 source mapped to the generated Account/Contact target, with part of the Account field mapping visible.
4. Configure the HTTPS Sender
On General, confirm that the channel uses the HTTPS sender adapter.
On Connection, configure:
| Setting | Value |
|---|---|
| Address | /skyvva/Account/CPI/BulkLoad/integrateWithIMessage |
| Authorization | User Role |
| User Role | ESBMessaging.send, assigned to the caller |
Keep the CSRF setting consistent with your tenant's authentication requirements. If CSRF protection is enabled, the caller must obtain and send a valid token.
For large loads, check Conditions → Maximum Message Size → Body Size (in MB) where available, together with any gateway request-size limits. Choose a batch size that fits those limits and the tested processing capacity of the receiving system.
5. Configure the SkyvvaSalesforce Receiver
5.1 Connection
On Connection, select Authentication Type = OAuth2. Select the OAuth2 Flow used by your Salesforce application, enter the Salesforce base Login Url, and select the deployed credential aliases.
For Username-Password Credential, configure both the user and client credential aliases. For Client Credential, configure the client alias and the org's My Domain Login Url. The client alias must refer to a User Credentials entry containing the Client ID in User and Client Secret in Password.
5.2 Processing
On Processing, configure:
| Setting | Value |
|---|---|
| Processing Type | Skyvva |
| Operation | Integrate |
| Skyvva API Version | V2 |
| Skyvva API | V4/integrateWithIMessage |
| Apex Method | POST |
| Integration | SAP Cloud Integration |
| Interface | Account_CPI_V2BulkLoad_IN |
Use the same Integration and Interface names in the receiver and in the mapped fromSystem and targetObject values. The payload names take precedence; the channel fields provide fallbacks when those values are absent. This V2 configuration automatically requests asynchronous processing after creating the messages; no separate Create Message Only selection is required for this walkthrough.
Postman sends the ERP source XML to the iFlow. CPI Message Mapping produces the Account/Contact XML. With V2 → V4/integrateWithIMessage, the adapter first creates SKYVVA messages with Status = New, then automatically requests asynchronous processing of the created messages. The background processing creates or updates Accounts and Contacts and evaluates the AccountId VLOOKUP formula. A message can therefore appear as New before its processing finishes; creating a message is not the same as saving the business records.
Figure 7. V2 receiver settings with the selected API, POST method, Integration and Account Interface.
5.3 Adapter Settings
| Setting | Example value |
|---|---|
| Logging option | Debug |
| HTTP client timeout (sec) | 300; adjust to the expected request duration |
| Enable retry for fatal connectivity errors | Disabled |
Use detailed logging only while setting up or investigating the flow, then return to your normal operational setting. Before resending a failed or timed-out load, check whether Salesforce already received it.
6. Deploy and Copy the Endpoint
Save and deploy the integration flow. Confirm that it has started.
Open Monitor → Manage Integration Content, select the flow, and copy its HTTPS endpoint. Use that exact URL in Postman.
7. Send Customer Data with Postman
7.1 Sample Data Format
The following XML illustrates the source structure using two customers and three Contacts. The actual Postman submission uses the bulk-test file in section 7.2.
<?xml version="1.0" encoding="UTF-8"?>
<DEBMAS06>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<DOCNUM>0000000000100451</DOCNUM>
<IDOCTYP>DEBMAS06</IDOCTYP>
<MESTYP>DEBMAS</MESTYP>
</EDI_DC40>
<E1KNA1M SEGMENT="1">
<KUNNR>0000100451</KUNNR>
<NAME1>Elbtal Baustoffhandel GmbH</NAME1>
<STRAS>Musterstraße 18</STRAS>
<ORT01>Dresden</ORT01>
<PSTLZ>01067</PSTLZ>
<LAND1>Germany</LAND1>
<TELF1>+49 351 555 0451</TELF1>
<E1KNVKM SEGMENT="1">
<PARNR>0001</PARNR>
<NAMEV>Anna</NAMEV>
<NAME1>Weber</NAME1>
<PRSNR>0001004511</PRSNR>
<SMTP_ADDR>anna.weber@example.com</SMTP_ADDR>
</E1KNVKM>
<E1KNVKM SEGMENT="1">
<PARNR>0002</PARNR>
<NAMEV>Martin</NAMEV>
<NAME1>Fischer</NAME1>
<PRSNR>0001004512</PRSNR>
<SMTP_ADDR>martin.fischer@example.com</SMTP_ADDR>
</E1KNVKM>
</E1KNA1M>
</IDOC>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<DOCNUM>0000000000100452</DOCNUM>
<IDOCTYP>DEBMAS06</IDOCTYP>
<MESTYP>DEBMAS</MESTYP>
</EDI_DC40>
<E1KNA1M SEGMENT="1">
<KUNNR>0000100452</KUNNR>
<NAME1>Spreeblick Hotelbedarf GmbH</NAME1>
<STRAS>Beispielstraße 27</STRAS>
<ORT01>Berlin</ORT01>
<PSTLZ>10115</PSTLZ>
<LAND1>Germany</LAND1>
<TELF1>+49 30 555 0452</TELF1>
<E1KNVKM SEGMENT="1">
<PARNR>0001</PARNR>
<NAMEV>Julia</NAMEV>
<NAME1>Schneider</NAME1>
<PRSNR>0001004521</PRSNR>
<SMTP_ADDR>julia.schneider@example.com</SMTP_ADDR>
</E1KNVKM>
</E1KNA1M>
</IDOC>
</DEBMAS06>
7.2 Send the Bulk-Test Input
The actual bulk-test input contains 6,000 customers and 60,000 Contacts, with ten Contacts under each customer. Customer external IDs range from 0000006000 to 0000011999. Each Contact contains PRSNR and PARNR for the composite Contact external ID.
Create a POST request using the endpoint copied in section 6 and configure the HTTPS sender’s required authentication. Select Body → binary, choose DEBMAS_Accounts_6000x10.xml, set Content-Type = application/xml, and send the request. The file is approximately 31.73 MB (30.26 MiB); confirm that the HTTPS sender and gateway request-size limits accommodate it before sending.
When message creation and submission for processing succeed, the adapter returns a response like this:
{
"Message": "Processing Integration With IMessage Successfully",
"StatusMsg": "Successful",
"StatusCode": "OK"
}
This response acknowledges the adapter’s message creation and processing request. Salesforce processes the messages asynchronously, so the response does not confirm that all Account and Contact updates have finished. Follow the messages in section 8 to check the final processing results.
After processing finishes, verify 6,000 distinct Accounts and 60,000 distinct Contacts, with ten Contacts linked to each Account. Upsert can update existing records, so these are the expected matching record counts, not necessarily the numbers newly created. Confirm that every Contact has its composite external ID, including the last Contact under each customer. The HTTP acknowledgement alone does not establish these results.
8. Monitor the Load
8.1 SAP Integration Suite
Open Monitor → Monitor Message Processing and find the execution for this flow. Check its status, duration, and any reported error.
For a failed call, open its message processing log and inspect the error details. When diagnostic logging is enabled, use the available request details to confirm that the expected Integration, root Interface, and operation were used.
8.2 Salesforce and SKYVVA
Open SKYVVA Integration Suite → Message Monitoring and locate the messages for this submission. Refresh the view to follow their processing status. If messages remain New, inspect the processing request and Salesforce Setup → Apex Jobs for pending jobs or errors before resending the load.
A SKYVVA message is a saved processing request. Its status describes what has happened to that request:
| Status | Plain-language meaning |
|---|---|
| New | SKYVVA has saved the incoming data; processing has not yet finished. It may be waiting for a background job. |
| Completed | SKYVVA reports that this message finished processing successfully. Check the saved Account and Contact to confirm the intended values and relationship. |
| Failed | SKYVVA encountered a processing error. Read the message’s Comment and error details before deciding how to correct it. |
You can see New and Completed messages together because the load is processed in the background and different messages can finish at different times. Completed applies to that message, not automatically to the entire file. The Postman success response acknowledges the request; it is not the final status of all 60,000 Contacts.
The monitoring views below show blue status flags and green status flags with Account/Contact processing comments. They contain different message rows; use them to understand the processing stages rather than to track one message changing status.
Figure 8a. Account-interface messages showing blue status flags in SKYVVA Message Monitoring.
Figure 8b. Messages showing green status flags and Account/Contact creation or modification comments.
Open a message and inspect its Data to check the values prepared by CPI Message Mapping. The adapter labels each field with its object name, followed by a dot:
| Message Data label | Plain-language meaning |
|---|---|
Account.Name | The Account’s name. |
Account.ERP_DEBTOR_ID__c | The Account’s ERP customer number, used by the Contact’s AccountId lookup. |
Contact.FirstName | The Contact’s first name. |
Contact.ERP_CONTACT_ID__c | The Contact’s external ID, built from PRSNR-PARNR. |
These labels keep Account and Contact values distinguishable when they are stored together in one message. For example, Account.Phone and Contact.Phone are different values. They are message labels; do not create Salesforce fields whose API names contain these dots. Several Contact messages can carry the same parent Account values because those Contacts belong to the same customer.
Compare the values with the submitted request. Check every Contact’s external ID, including Contacts after the first. The dotted Account.ERP_DEBTOR_ID__c in the VLOOKUP formula reads the same labeled value shown here.
The example below shows an earlier test message for customer 0000006000, Global Tech Solutions GmbH, and John Smith. Its Data contains the Contact external ID 0000006000-0001. The comment Modification of Account Modification of Contact means SKYVVA reports updates to existing Account and Contact records for that message.
This screenshot illustrates the dotted Data labels and a populated Contact key. For the current bulk file, the PRSNR-PARNR mapping produces 0000600001-0001 for John; verify against the submitted file rather than copying the earlier screenshot’s key.
Figure 9. Earlier test message for customer 0000006000 and John Smith, showing Contact external ID 0000006000-0001.
In Salesforce, find the Accounts by their ERP external IDs from the submitted bulk-test file. Verify 6,000 matching Accounts and 60,000 matching Contacts, with ten Contacts linked to each Account. Check the Contact external IDs against each source Contact’s PRSNR-PARNR value. The small XML in section 7.1 illustrates the format; its two-customer counts are not the expected results of this submission.
The Account view below shows related Contacts under Global Tech Solutions 6000 GmbH. Its Account name, phone and street differ from the earlier message Data in Figure 9; the shared customer number alone does not prove that the screenshots show the same run or record state. Open View All and inspect the external IDs to identify the ten Contacts from the bulk-test input. Repeated names alone do not establish whether records are duplicates.
Figure 10. Global Tech Solutions 6000 GmbH with a preview of its related Contacts.
9. Summary
The integration flow receives ERP customer XML, maps it to Account and Contact data, and calls V4/integrateWithIMessage through the SkyvvaSalesforce Receiver. Chained SKYVVA interfaces upsert the Accounts and Contacts, while external IDs identify records across repeated loads.
Use the message data and processing status to follow the load, then open the Account and its related Contacts in Salesforce.
Configuration Summary
| Component | Configuration |
|---|---|
| Integration | SAP Cloud Integration |
| Root Interface | Account_CPI_V2BulkLoad_IN, Account Upsert, External Mapping |
| Child Interface | Contact_CPI_V2BulkLoad_IN, Contact Upsert, AccountId lookup, inbound IChainedInterface relationship to the Account interface |
| Sender | HTTPS, POST to the deployed endpoint |
| Message Mapping | DEBMAS06 customer and Contact segments → Account/Contact XML with fromSystem and targetObject |
| Receiver | SkyvvaSalesforce, Integrate, V2, V4/integrateWithIMessage, POST, matching Integration/Interface |
| Processing | Asynchronous for this example |
| Verification | SAP Integration Suite message log, SKYVVA Message Monitoring, and Salesforce Accounts with related Contacts |