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

Anurag Tripathi
Mega Patron
Mega Patron

You can pass the current record as a parameter and use it in the script include

-Anurag

shiva9
Giga Guru

Hello @Anurag Tripathi - 

Are you telling to use the current.sys_id in the script include?

I didn't get you can you elaborate a bit more.

 

 

Thanks!

Where you are calling the script include, can you pass the record's sys_id as argument? 

 

for eg:

var x = new ScriotIncludeName().functionName('record's sys id or object');

-Anurag

We have glided the table and used a record sys I'd in the addQuery.

 

We are calling it in ui macro.