When a scheduled script sets a transaction body fi...
# suitescript
b
When a scheduled script sets a transaction body field (through
nlapiSubmitField
in this case), shouldn't the field change appear in the system notes? (The field is getting set on the record successfully.) I also noticed that if I edit a sales order in the UI and then set the field in the developer console and then save, I get the prompt saying "the record was not changed, do you want to submit?" I can't remember if that's normal.
a
for the system notes. I'm not 100% sure but I don't think its scripting related. There's some config settings somewhere that allow you to set if fields/records have system notes I think. Did a quick search and didn't find anything on that, but I've seen that certain fields in certain accounts just don't set a systemnote on change. To confirm modify that same field some other way and see if THAT makes a system note - my guess is it will not.
👍 1
for the console edit... it depends how you're changing it from the console. if you're getting the currentRecord object and setting the value on it, then I'd think it might know about the change. if you're doing a submitFields, or seperate load/setvalue/save record then it wouldn't know cos you're effectively not in the window/record context for that.
👍 1