- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
Simple widget to query records, as a guest user is not returning records: Works perfectly when logged in.
Widget Server Script:
---------------------------
<div class="panel-heading">Active Incidents</div>
<div class="panel-body">
<table class="table table-striped">
<thead>
<tr>
<th>Number</th>
<th>Short Description</th>
<th>State</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="incident in data.incidents">
<td>{{incident.number}}</td>
<td>{{incident.short_description}}</td>
<td>{{incident.state}}</td>
</tr>
</tbody>
</table>
</div>
</div>
What is it that prevents GlideRecord to return 0 count as a guest? Thanks for the help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
try to use setWorkflow(false)
var gr = new GlideRecord('incident');
gr.addActiveQuery();
gr.setWorkflow(false);
gr.query();
data.incidents = [];
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
try to use setWorkflow(false)
var gr = new GlideRecord('incident');
gr.addActiveQuery();
gr.setWorkflow(false);
gr.query();
data.incidents = [];
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
Thank you Ankur Bawiskar!
