Why Glide Ajax is not Working in the UI Action Workspace Client script
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2025 02:44 AM
Client script
Script Include
Actually here I have to get the blocking tasks message but anything is not happening on form.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2025 10:26 AM
hi @saineha
Add this.getParameter("sysparam_caseId") in script include to get the parameters and try it.
checkBlockingTasks: function() { // No parameters here!
    var caseId = this.getParameter('sysparm_caseId'); // Retrieve param sent from client
    var blockGr = new GlideRecord('sn_action_status_blocked_by');
    blockGr.addQuery('blocked_task', caseId);
    blockGr.addQuery('unblocked_on', '');
    blockGr.query();
    if (blockGr.hasNext()) {
        return true;
    }
    return false;
},
Thanks,
Bhimashankar H
-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2025 08:44 PM
Hey @saineha ,
Did you get chance to review the code snippet given in my previous post.
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. It will help future readers as well having similar kind of questions and close the thread.
Thanks,
Bhimashankar H
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2025 10:10 PM
So if it's not working then what debugging did you do?
what's your findings?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
