I'm trying to change the Department of an Intercom...
# suitescript
l
I'm trying to change the Department of an Intercompany Account from an AICJE. That is automatically generated through Perform Auto Balance during CSV import. Any thoughts why the script below isn't working? Thanks! Run Server Scripts is enabled. CSV context is selected.
s
you need not use 'Current' methods - use
setSublistValue
instead, passing the line.
b
you should use either the debugger or logs to determine what data you are working with
the problem stalbert noticed suggests that no line has an account that looks like 251
s
Also the formatting makes it look really wrong, with the
else
being lined up with the
for
loop