BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
74 / 1048 · Module 3 — DataWeave 2.0 Crash Course← prev⊞ allnext →

3.31CSV → Salesforce

Input:

customerId,name,state
C001,Acme,FL
C002,Widget,GA

DataWeave can treat CSV rows essentially as objects:

%dw 2.0
output application/java
---
payload map (row) -> {
    External_Customer_ID__c: row.customerId,
    Name: row.name,
    BillingState: row.state
}

This is why MuleSoft is so commonly used for enterprise integration.