I need to log when a user pushes a button on a sal...
# suitescript
p
I need to log when a user pushes a button on a sales order. My initial thought was to do this on the client script (2.1) using N/log. Then in my script I have the following:
Copy code
function success(result) {
            log.audit({
                title: "Rating has been used",
                details: "User is " + user
            });
The problem is nothing is being logged. What part am I missing?
b
using N/log relies on understanding the limitations of where logs go from client scripts
p
got it, found this that @erictgrubaugh posted on stack while back:
Form-level Client Scripts, which is what you've made by attaching your Client Script to the Suitelet Form, do not have an Execution Log as there is no associated Script or Script Deployment record.