Why the List Action was not working in my list in workspace?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2025 12:40 AM - edited ‎02-27-2025 12:40 AM
Hi All,
Actually I have created one List UI action "Allocate Task", in the Catalog task table , so here i need two things
1) This Ui action was need to display only on list "Assigned to your team" not on the "Assigned to You " list
2)when we click on this Ui action ,the earliast catalog task (only one)was need to assigned to me , but it assigned all the catalog tasks to me, i put set limit as well but not working
Please help me to complete this
Thanks
Ramu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2025 05:52 AM
Actually if i didn't put setLimit then it update all the records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2025 05:54 AM
if encoded query is wrong then GlideRecord will update all the records
So please do this to confirm if your logic is working fine
1) comment line 9
2) in line 10 give setLimit(5)
3) then use while instead of if at line 12
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2025 12:01 AM
Still the same, whatever in setLimit(), its bypassing that and updating every record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2025 12:36 AM
share your latest script here, not screenshot
did you check what row count you got for your query?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2025 01:20 AM - edited ‎03-03-2025 01:20 AM
@Ankur Bawiskar Here is the script