Skip to content

Instantly share code, notes, and snippets.

@JordanSchuetz
Last active July 16, 2020 02:43
Show Gist options
  • Save JordanSchuetz/2725067d87b2c400d85088498444e820 to your computer and use it in GitHub Desktop.
Save JordanSchuetz/2725067d87b2c400d85088498444e820 to your computer and use it in GitHub Desktop.
%dw 2.0
import * from dw::core::Arrays
output application/json
---
vars.csv1 map(item, index) ->{
FirstName: item.fname,
LastName: item.lname,
Email: item.email,
Company: item.company,
AnnualRevenue: vars.csv2.AnnualRevenue[indexOf(vars.csv2.uuid, item.uuid)],
Phone: vars.csv2.Phone[indexOf(vars.csv2.uuid, item.uuid)]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment