Files and Trading Partners
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
Module 8 of 8 in the chapter Enterprise Integration Architecture, chapter 18 of the Integration Architect course. Each module stands on its own. Previous: The Vault in the Middle: Who Holds Your Keys · Next chapter: Data Connectivity and Virtualization
The question this module answers: Many partners still send files and EDI, not API calls. How do those reach Salesforce, and what does the middle have to speak so Salesforce doesn’t?
Still on the Road
Section titled “Still on the Road”In chapter 17 I said less ended than you might think. When I was writing software in 1990, exchanging information meant dialing up. The dial-up is gone. The files and the EDI it carried are not.
You’ve already met all three generations at Steve Trucking (chapter 5 module 5). Its three Retail Partners each send their manifests their own way:
- Redrock calls an API.
- Keystone sends a CSV file over SFTP, and gets a status file back every night.
- Brightwave sends EDI, through a third-party network.
None of them is wrong. Each partner is on the road it was built on, and none of them is going to change its systems for one trucking company. So the integration layer speaks all three, and turns each one into the same Delivery, the common shape from module 4, on the way in.
This module is about the second and third roads.
Files: Still Everywhere
Section titled “Files: Still Everywhere”A file is the simplest integration there is. One side writes it, the other side picks it up. No API to design, no connection held open, and every system in the world can read a CSV.
The usual road today is SFTP: file transfer over SSH, encrypted, with a key or a password to sign in. Plain FTP sent passwords in clear text and has no place in a design today (chapter 17 module 7).
What a file gives up is what an API call gives you for free: an answer. A file just sits there. Did it arrive? Was it complete? Did anyone pick it up? So a file integration needs the habits chapter 10 taught: counts in and counts out, a name that says what and when, and a receipt from the other side. For Keystone’s nightly status file, the contract says Keystone’s pickup is the receipt, and a missing one is chased by morning.
When a company has many partners sending many files, it usually runs managed file transfer, MFT: one service that receives and sends the files, encrypts them, retries, tracks every file from arrival to pickup, alerts when one is late, and keeps an audit trail. It’s the integration platform’s idea, applied to files.
And Salesforce doesn’t pick up files. It has no SFTP folder. The integration layer reads Keystone’s file and loads it through the Bulk API (chapter 10), and for the status file going back, the layer queries Salesforce and writes the file.
EDI: Business in a Standard Format
Section titled “EDI: Business in a Standard Format”EDI, electronic data interchange, is older than the web and still runs a large share of trade between companies: retail, transport, healthcare, manufacturing (chapter 17 module 2). Instead of a file each pair of companies designs for itself, EDI uses standard messages that both sides already agree on, field by field.
There are two main standards.
- X12, chartered by the American National Standards Institute. Each kind of business document has a number. A purchase order is an 850: a message begins
ST*850*0001~, the start of a purchase order with its control number (Example 01: Basic Purchase Order (opens in a new tab), X12, checked 2026-11-21). - UN/EDIFACT, the international standard developed for the United Nations and published by the UN Economic Commission for Europe, with its syntax approved as ISO 9735 (EDIFACT (opens in a new tab), Wikipedia, read 2026-11-20).
You don’t need to read EDI by eye. You need to recognize it when you see those segments and asterisks, and know that every message type has an agreed meaning, a version, and often a partner’s own guide on top of the standard about which fields they actually use.
And EDI has acknowledgments built in. When you receive a message, you send back a functional acknowledgment: a 997 in X12, a CONTRL message in EDIFACT. It says the message arrived and could be read. It’s the return receipt from chapter 14 module 5, standardized decades ago.
How EDI Travels
Section titled “How EDI Travels”The message is the standard. How it gets there is a separate choice.
- A value-added network, a VAN: a third party that runs a mailbox for each company and passes EDI between them. That’s Brightwave’s third-party network. Each side connects once, to the network, not to every partner.
- AS2, “MIME-Based Secure Peer-to-Peer Business Data Interchange Using HTTP”, an IETF standard since July 2005 (RFC 4130 (opens in a new tab), checked 2026-11-21). Two companies send EDI directly to each other over HTTPS, signed and encrypted, and a signed receipt comes back, so the sender can prove it was delivered.
- SFTP, the same as any file: the EDI message dropped into a partner’s folder.
Each of these needs keys and certificates, exchanged with every partner and renewed before they expire (chapter 12). Put them in the vault, with an owner and a renewal date (module 7).
Salesforce Speaks None of Them
Section titled “Salesforce Speaks None of Them”Here’s the point for a Salesforce architect. Salesforce doesn’t speak SFTP, EDI or AS2. It speaks its APIs (chapter 8). So every one of these roads ends at the integration layer, and the layer translates.
That’s a job integration platforms take on directly. MuleSoft’s Partner Manager, for example, “supports multiple transport protocols, including AS2, HTTP, HTTPS, SFTP, and FTP, and handles various message formats such as CSV, EDIFACT, EDI X12, JSON, and XML”, and it can send the 997 or CONTRL acknowledgment back (Anypoint Partner Manager for B2B Integration (opens in a new tab), MuleSoft Documentation, checked 2026-11-21). Other integration platforms, file transfer services and the VAN providers themselves offer the same kind of thing. As always, start with what the company already runs.
Follow Brightwave’s manifest through Steve Trucking’s layer:
- Brightwave’s EDI arrives through the network, into the layer.
- The layer checks it can read it, and sends the functional acknowledgment back.
- It translates the EDI message into the common Delivery shape.
- The Deliveries process API writes it into Salesforce, through the same door Redrock’s and Keystone’s manifests use.
- At night, status changes go back to Brightwave the same way in reverse: out of Salesforce, into the Delivery shape, into EDI, through the network, and the layer watches for Brightwave’s acknowledgment.
Salesforce sees three partners’ deliveries arriving one way. That’s the whole lesson of the chapter, in one partner: the middle speaks everyone’s language, so nobody else has to.
Test knowledge. Expect a scenario where a partner exchanges files or EDI, and the answer puts middleware or an integration platform between the partner and Salesforce, to receive, translate and load the data (often through the Bulk API for large files). Know that Salesforce doesn’t natively receive files over SFTP or EDI messages, and that file integrations need their own checks for completeness and delivery.
Beyond the exam: what AI changes. AI helps at the edges of this work: drafting the mapping from a partner’s EDI guide to your common shape, or reading a partner’s PDF specification into a field list. It doesn’t change the standards, the acknowledgments or the certificates, and it can’t tell you which fields a partner actually fills in. Test the mapping with the partner’s real messages before go-live.
What an Architect Decides Here
Section titled “What an Architect Decides Here”- Which road each partner is on: an API, a file, or EDI, and through which network or protocol.
- Where files and EDI land: managed file transfer or the integration platform, never Salesforce directly.
- How each message becomes the common shape, and who owns that mapping.
- How you know it arrived: counts, pickups, functional acknowledgments and AS2 receipts, checked by someone.
- The keys and certificates for every partner, in the vault, with renewal dates.
Explore
Section titled “Explore”- Anypoint Partner Manager for B2B Integration (opens in a new tab), MuleSoft Documentation (checked 2026-11-26): one integration platform’s B2B and EDI tool.
- RFC 4130, Applicability Statement 2 (AS2) (opens in a new tab), IETF, July 2005 (checked 2026-11-26): EDI over HTTP, signed and receipted.
- Example 01: Basic Purchase Order (opens in a new tab), X12 (checked 2026-11-26): a real X12 850, segment by segment.
- EDIFACT (opens in a new tab), Wikipedia (checked 2026-11-26): the United Nations’ EDI standard, used mostly outside North America.
- Did It All Arrive?: chapter 10, counting a file in and out.
