ABC group members is not part of Level 1 and Level 2 cost center users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2023 11:56 PM
Hello Experts,
My requirement is
I want users details in a report who is part of ABC group is not part of cost center table Level1 approver(reference field) and level 2 approver(reference field).
So I created script include but when i run report it is taking so much of time to get results and instance also not working
In report the condition is sysID is javascript: TestL1L2Approver();
Is there any mistake in my script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 04:49 AM
Hello @Ankur Bawiskar
Tested with above script but no luck , again i can see one user sys_id and he is part of L1 approver.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 05:34 AM
Did you try running in background script and check the logs?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 05:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 06:00 AM
while pushing into array use toString()
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 06:07 AM
Tested with toString as well but again i am getting same result
for reference on the right side you can see one user sys_id. he is part of cost center L1 approver