pen one

04/11/2022, 7:02 PM
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) {
                title: "Rating has been used",
                details: "User is " + user
The problem is nothing is being logged. What part am I missing?


04/11/2022, 7:04 PM
using N/log relies on understanding the limitations of where logs go from client scripts

pen one

04/11/2022, 7:33 PM
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.