Last active
September 4, 2019 18:42
-
-
Save emoran/c7c9503072dd7464321ebf5a7a21b1d5 to your computer and use it in GitHub Desktop.
dataweave update netsuite custom field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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