Hey, I am trying to generate Advanced intercompany...
# suitescript
a
Hey, I am trying to generate Advanced intercompany Journal Entry from a Bill afterSubmit, when set value to an account field in Line sublist it keeps throwing error:
"INVALID_FLD_VALUE","message":"You have entered an Invalid Field Value 929 for the following field: account"
Could you help me understand does this happen? When I try to manually add this line with this account from Netsuite UI it allows me to do it
Copy code
...........
aije.selectNewLine({ sublistId: 'line' });
aije.setCurrentSublistValue({
    sublistId: 'line',
   fieldId: 'subsidiary',
   value: lineData.subsidiary
});
aije.setCurrentSublistValue({
   sublistId: 'line',
   fieldId: 'account',
   value: lineData.account
});
...........
b
if there are no option, you didnt set a field that sources the accoun
if your option isnt in the list, then a field that sources the account filtered out your account
👀 1
a
Thanks a lot! This helped me to debug and find the issue.
Hi @battk do you by any chance know if it is possible to trigger auto balance via user event script?