-
Notifications
You must be signed in to change notification settings - Fork 278
Intercompany - Cross-eviroment data sending using Transfer type = Database (API) - Field IC Source Type #8215
Description
1. Describe the bug
Sending Purchase Document using Intercompany feature (cross-enviroment using API) doesnt work properly, IC Source Type = Sales Document is sent, IC Source Type = Journal is received.
Problem is probably in InterCompany API - bufferIntercompanyInboxTransactions
{
"@odata.etag": "W/\"JzE4OzcyODAwMjE0NDM0MDM3MjY2MDE7MDA7Jw==\"",
"id": "c3c85855-e622-f111-8340-7c1e5225f901",
"transactionNumber": 148,
"icPartnerCode": "TEST1",
"sourceType": "Sales Document",
"icSourceType": "Sales_x0020_Document",
"sourceTypeIndex": 0, **// i expect value 1 here**
"documentType": "Order",
"documentTypeOrdinal": 5,
"documentNumber": "NO-2600103",
"postingDate": "2026-03-18",
"transactionSource": "Created by Partner",
"transactionSourceIndex": 1,
"documentDate": "2026-03-18",
"lineAction": "No Action",
"lineActionIndex": 0,
"originalDocumentNumber": "NO-2600103",
"sourceLineNumber": 0,
"icAccountType": "G_x002F_L_x0020_Account",
"icAccountTypeOrdinal": 0,
"icAccountNumber": ""
}
This problem should be fixed in BC 27.5
Application hotfixes 619364
Application hotfixes 614343
2. To Reproduce
Set up intercompany between 2 enviroments - use Database Transfer type, Set up IC partner in every enviroment company - dont use Auto. Accept Transactions in target partner, Send Purchase Order from enviroment 1 to enviroment 2
3. Expected behavior
In Intercompany Inbox Transaction of Enviroment 2 should be new record with value in Field IC Source Type = Sales Document
4. Actual behavior
In Intercompany Inbox Transaction of Enviroment 2 is new record with value in Field IC Source Type = Journal (default enum value Enum::"IC Transaction Source Type")
5. Versions:
- AL Language: 16.2.1869542
- Visual Studio Code: 1.99.2
- Business Central: Platform 27.0.46893.0 + Application 27.5.46862.46929
- List of Visual Studio Code extensions that you have installed: W1 standard + customizations
- Operating System:
- Windows 11