How to get values dynamically using Get Method Rest API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 01:20 AM
On Catalog Item there is a variable called Requested For. whatever user is selected on Requested For Variable that value Department should need to get from other service-now Instance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 01:35 AM
Hi,
Is this more of ServiceNow to ServiceNow integration or some other system? Or is it that you want to pass RequestedFor.Department value to the other system.
What have you tried and where are you stuck?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 02:10 AM - edited 11-25-2023 02:49 AM
Hi @Jaspal Singh,
Please find below code.
I wrote on Load client script and passing the Requested For user SysId to script include: