
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2018 02:51 AM
As I replied to This community question:
I have a catalog item on the Service Portal to where I added a macro variable that loads a widget:
Now, when this widget loads, I want to grab the sys_id of the calling catalog item because in the Server Script, I want to query the item_option_new table to get the sys_id's of all the variables:
When the widget initially loads, it runs the Server Script and that's where I can't seem to get the sys_id of the calling catalog item.
The only way that I've found do what you're trying to do is by doing this:
However, this is not the way I want to go about it. I need to grab that sys_id before any of the HTML Template code gets rendered.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2018 05:40 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2018 05:40 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2018 05:46 AM
Yep, that'll do it. This is perhaps the only way in which it can be done too... i'm only assuming. So, I'll mark this as correct. Thanks Jon for taking time on a Saturday to answer my question!