- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2019 12:37 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2019 06:38 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2019 06:38 AM
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!