How to get the current record in script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2023 09:04 AM
We have created a script include and calling it in the UI macro, we are not able to fetch the current record sys I'd .
Does any have any idea about it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2023 10:10 AM
Pass the same sys id to the script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 10:15 AM
Thank you @Anurag Tripathi . Let me try with that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2023 10:28 AM
HI @shiva9
@Anurag Tripathi is right. you can pass the record's sys_id as argument.
UI Macro uses Jelly script, it is sensitive to parentheses. Please ensure it is rightly done. Or you can also share your code with us.