How to get Query String in Client scripts
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017 11:48 AM
How to get QueryString values in clients script. I am looking for a way to write code to work for Service Portal and also native service now
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017 02:32 PM

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017 02:05 PM
Always use Call back function when doing GlideRecord queries on client side.
var r = g_form.getValue('thisField');
var q = new GlideRecord('thisTable');
q.addQuery('field1', r);
q.query(CallBack);
function CallBack(q){
while(q.next()) {
//do something
}
}