How to get the current record in script include

shiva9
Giga Guru

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?

7 REPLIES 7

Pass the same sys id to the script include 

-Anurag

Thank you @Anurag Tripathi . Let me try with that.

POOJA SINGH18
Mega Guru

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.