Can some explain why this is not working on save r...
# suitescript
k
Can some explain why this is not working on save record client script??
Copy code
var currentUser = runtime.getCurrentUser();
        var currentUserRole = currentUser.role;
        log.debug(currentUserRole);
        log.debug(typeof currentUserRole);
        var saveStatus = true;
        if (currentUserRole == 1005 || currentUserRole == 1066) {