Anyone seeing issues with record.submitFields(). M...
# suitescript
n
Anyone seeing issues with record.submitFields(). Maybe just an external SL form issue from NS but as soon as i change to record load/save I don't get the unexpectedSuiteScriptErrror
n
What does your code look like?
n
I noticed this happen the other day in another account too. As soon as I replace this with record load/save it works just fine.
Copy code
var worec = record.submitFields({
                        type: 'customrecord_dc_schedule',
                        id: scheduleid,
                        values: {
                            custrecord_dc_schedule_status: status
                        }
                    });
n
are you getting unexpected error?
n
yes
n
Do you have any other UE/WF script running on Xedit?
n
nope
n
Weird... There is nothing wrong with the code.
can you try with passing options?
sourcing and ignore mandatory fields?
e
Do you have any other UE/WF script running on Xedit?
This would have been my suspicion as well