any thoughts on why an invoice wouldn't be set app...
# suitescript
j
any thoughts on why an invoice wouldn't be set approved by passing approvalstatus: 2?
r
Record.save()?
j
yep, I'm saving and if I press Approve on the invoice in the UI it approves no problem
s
Are there any other scripts or workflows overwriting your field value?
e
Is
2
a valid value? Or is this another of those Transaction Status fields that needs to be
"A"
or
"SalesOrd:A"
or some other such value?
j
2 Is the internal ID for approved, but when searching, you're correct @erictgrubaugh Not that I can see. Works fine when being updated in a RESTlet, but not when using the same code in a scheduled script. If I set it using a user event script after submit, that works too. Its super strange
e
Hm, I think I'd fall back to Sean's question to see if there are any other UEs or Workflows manipulating the field
s
Check 'Scripted Records'
maybe your UE is firing downstream