Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 08:55 PM
Hi
I am working on a business rule and I need to create an array of user's from the below query. However when I test it only prints one sys_id and I know there is a lot more than that?
Is anyone able to help me please??
Thanks
Mike
Solved! Go to Solution.
Labels:
- Labels:
-
Scripting and Coding
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 09:06 PM
Hi there,
Your code is almost fine except one little tiny typo...
Line 6, the ; is causing this. Please remove the ; which should really not be there.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP
---
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 09:13 PM
Hi,
remove semicolon on line 6 on while loop.
Thanks,
Pavankumar