Using script include while constructing query in URL(from arguments ) in navigation link

adarshshivaprak
Kilo Contributor

Hello All ,

We had a requirement to show all open incidents which are tagged to the logged in   user. The entitlement is done on the user table.

Can we use script include while constructing URL (from arguments) along with fixed query to show the incidents returned by script include .

EG :

1.     incident_list.do?sysparm_fixed_query=caller_idDYNAMIC90d1921e5f510100a9ad2572f2b477fe^ORopened_byDYNAMIC90d1921e5f510100a9ad2572f2b477fe^active=true

Including script include :

2.     incident_list.do?sysparm_fixed_query=caller_idDYNAMIC90d1921e5f510100a9ad2572f2b477fe^ORopened_byDYNAMIC90d1921e5f510100a9ad2572f2b477fe^active=true&javascript:new INC_Selection().getincident().

Only the first query is working and the second is not working .

Any suggestion on how we can achieve it .

Thanks ,

Adarsh S

11 REPLIES 11

Thank you. I added it to my URL:


incident_list.do?sysparm_fixed_query=sys_idINjavascript:matchParentIncToChildInc();



and it worked.


I had tried returning building the list of Sys_ids in the script include, but that did not work.



return 'sys_idIN' + gp;


reginabautista
Kilo Sage

Hi Sam hope you got this issue sorted. Could you mark my answer as correct please so it gets removed from unanswered list. Cheers - Regina