Customer Record
# suitescript
k
Customer Record
j
Are there any errors? I'm not really sure why this isn't working but as I said I've not worked with workflow action scripts before, do you see anything in the logs?
In fact, one thing that may be causing trouble is line 17 of what you posted, the Item Count in details should be like this
details: itemCount
@karlenigma
k
I'll re upload and try that.
I did remov the logs though but now i will try and see if they log.
j
Yeah add the logs back in, that way we will at least know if the code is running
I'm assuming you haven't seen any errors reported?
k
not running as nothing in the chrome console.
j
if you want to log to chrome console you have to do console.log instead of log.debug
k
Just checked script log and the count of 1 is in there
j
also if you are looking in chrome console you can add in
debugger;
to just before the first log then you could step through the code
is the record you are on in edit mode?
k
View button.
j
Not really too sure about workflow action script I'm sorry
k
It is a before record load button added on view.
I don;t think i need to actually load the record.
j
I wonder if the record has to be in edit mode for it to work?
k
I am now stuck lol.
j
Hold on 1 sec, I've got an idea