Skip to content

Instantly share code, notes, and snippets.

@emoran
Last active September 4, 2019 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emoran/c7c9503072dd7464321ebf5a7a21b1d5 to your computer and use it in GitHub Desktop.
Save emoran/c7c9503072dd7464321ebf5a7a21b1d5 to your computer and use it in GitHub Desktop.
dataweave update netsuite custom field
%dw 1.0
%output application/java
---
[{
internalId: payload.internalId,
itemList: {
item: [{
amount: payload.itemList.item[0].amount as :number,
item: {
internalId: "520"
},
customFieldList: {
customField: [{
SelectCustomFieldRef__custcol_location_z_suite: {
internalId: "27",
name: "MMR"
},
SelectCustomFieldRef__custcol_location_a_suite: {
internalId: "23",
name: "MMR"
},
SelectCustomFieldRef__custcol_region: {
name: "DTLA"
},
BooleanCustomFieldRef__custentityzuoraautopay: "false",
DateCustomFieldRef__custcol_wil_estcompdate: now,
SelectCustomFieldRef__custcol_region: {
name: "something"
},
{
StringCustomFieldRef__custbody40:payload.invoiceNumber
}
}]
}
}],
replaceAll: true
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment