- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 07:23 AM
Hi All,
how can we get the current sys_id on csm workspace in UI Builder component or data resource
I have created a contextual search on CSM workspace, where i am calling a Activity Component which should show activity of case table, i am able to get the details in static manner, mean if i give a sys_id of case then it is showing the correct details and for this to be dynamic i need to pass the sys_id of the ticket selected on the csm workspace , how can i pass it.
CSM Workspace where i have created a new contextual search
I am calling an Activity Stream Component from case table
When i am giving the sys_id directly then i am able to fetch the required details, now i have to fetch the sys_id of the ticket which is selected on workspace, how to do this. i tried adding some code under bind data and script but not able to write the correct script, can someone tell if this can be done, can i fetch the SYS_ID in update in sys_id field of component.
Thanks in Advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2022 05:20 AM
I'm saying put @context.props.sysId in below where you have sysID. This assumes your page parameter is "sysId".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2022 07:20 AM
@Michael Fry1 can you please let me know one more thing, this contextual side bar is now visible for all the tables, how can i hide for others and show only on INC and RITM table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 05:37 AM
@anshul_jain25 @Michael Fry1 - we also have the exact same issue, however when we add the @context.props.sysId to the sysId it still did not work. Any idea on what we could be missing?
We have created a post for this issue we are experiencing: https://www.servicenow.com/community/developer-forum/how-to-show-variables-from-a-submitted-record-p...