Rerurns [GlideRecord][Object].

Mi1
Tera Contributor

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,

13 REPLIES 13

Sagar Pagar
Tera Patron

Hi,

Can you share the complete scripts here?

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Mi1
Tera Contributor

Hi,

Thank you.

If I try to script here for some reason, I will be denied access.

Post a screenshot.

Regards,

Mi1
Tera Contributor

Hi,

Here.

Regareds,

Hi,

Your scripts looks good.

 

Try by adding logs statement as-

gs.info("user1: " + this.getParameter('sysparm_id'));

 

Thanks,
Sagar Pagar

The world works with ServiceNow