Export Related List

neharao
Giga Contributor

Hi all,

I a trying to use this functionality provided by SNGuru i.e Exporting of Related List (https://www.servicenowguru.com/system-ui/enabling-related-list-exports-servicenow/ ). But when i try to achieve this i am getting error in the script part. Please find the error below.

find_real_file.png

Can someone please guide me on this.

Thanks,

Neha

1 ACCEPTED SOLUTION

if condition should be



if(g_list.getListName().indexOf('.REL:') > -1) {


g_menu.setHidden(g_item) ;


}


View solution in original post

9 REPLIES 9

HarshTimes
Tera Guru

Use   '>'   in place of >


Hi Harsh,



Thanks for your response but i replaced with '>' and still i get an error. Please find the screenshot below for the same.



find_real_file.png



Thanks,


Neha


remove &


if condition should be



if(g_list.getListName().indexOf('.REL:') > -1) {


g_menu.setHidden(g_item) ;


}