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

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

View solution in original post

5 REPLIES 5

PavanK960672992
Mega Patron

Hi,

remove semicolon on line 6 on while loop.

 

Thanks,

Pavankumar