Issues with recordWatch

David Carlin
Giga Guru

I am having an issue with a custom widget that I created in ServiceNow. This widget is used to allow users to book cube reservations for working on prem on any given day, otherwise they work from home.

I am using spUtil.recordWatch() in my client script and during testing I was getting the expected results... when I modified a record on the table being watched, the function inside of recordWatch would run.

The issue is, when I go on as a different user and different computer, it doesn't seem like recordWatch is running. Why is this?

How does record watch work with a given user? Is it something only an admin can use? Why doesn't it work when I am under another user.

Thanks!

David

1 ACCEPTED SOLUTION

David Carlin
Giga Guru

I figured out the issue. When you create a custom scoped app, ACLs are created by default. The custom table I was trying to watch had a custom role on it for the read ACL. This means a user could not see the table to watch it. Once I removed these ACLs it all worked!

View solution in original post

1 REPLY 1

David Carlin
Giga Guru

I figured out the issue. When you create a custom scoped app, ACLs are created by default. The custom table I was trying to watch had a custom role on it for the read ACL. This means a user could not see the table to watch it. Once I removed these ACLs it all worked!