Item Preprocessing with JavaScript
Video Lecture
Description
This is the script used in the item preprocessor
| var lines = value.split('\n')
var lineZero = lines[0]
var accountName = ''
lines.forEach(function (line) {
if (line.trim().substring(0, 13) === 'Account Name:') {
accountName = line.substring(14).trim()
}
})
return accountName + ' : ' + lineZero
|
Useful Links
JavaScript preprocessing
Item value preprocessing