Rerurns [GlideRecord][Object].
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 02:23 AM - edited ‎10-04-2022 03:24 AM
Hi,
I want to pass the sys id I got in the client to Script Incudes.
But 'getParameter' returns [Object GlideRecord].
How can I return sys id?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 04:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 02:51 AM
Hi,
your both the scripts are fine.
I didn't get what's your challenge/issue
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 03:19 AM - edited ‎10-04-2022 03:25 AM
Hi,
My problem is that the script include doesn't return a value.
Currently returns 'Null' to the client.
Since [Object GlideRecord] is returned on line 28, processing after line 29 doesn't work.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 03:28 AM
HI,
Can you verify your variable at line 28 and 29 are correct.
Regards,
Vaibhav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 04:32 AM
Hi,
Sorry, old screenshot.
Fixed but no value returned.
var user = this.getParameter('sysparm_id');
var department = user.getElement('department.id'); // RETURN VALUE