Shaun Hillier
Kilo Guru

Hi Mujtaba



I can't see any obvious reason why this isn't working. But can give you a useful tool to debug.


At the end of your code if you add:



gs.log("Current Query:"+current.getEncodedQuery(),"Mujtaba Ahmed");



This will print out the encoded query into the logs. You can then copy this into the browser, your_instance/[your_table]_list.do?sysparm_query=[the query] to see exactly what the code is doing. Helpful to spot any errors.



Regards



Shaun


View solution in original post