Trying to create array from glideRecord query

Mike D1
Giga Guru
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
 
find_real_file.png
1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

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

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

5 REPLIES 5

Pavankumar_1
Mega Patron

Hi,

remove semicolon on line 6 on while loop.

 

Thanks,

Pavankumar

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar