How to get user's browser and operating system from record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 05:48 PM
Hi: In a record producer for incident, I need to record the user's browser and operating system. Can I look that up in the business rule? Any idea how? Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2017 05:38 AM
You mean you want to store the value in one variable.?
If you check the Automated Testing Framework. there details has also stored in one field.
Now coming to your requirement,
Please correct me if i understood it wrong,you have record producer and that is on incident table. why don't you map that variable to your custom field on incident table.
create on submit catalog client script and by using
function onSubmit() {
//Type appropriate comment here, and begin script below
var bdetails=navigator.userAgent;
g_form.setValue('<variable>',bdetails);
}
once you will submit the Record Producer ,it will directly stored in your incident custom field because you have already mapped that variable with your incident custom field.
I submitted record producer and the value has stored in short description field because i had mapped my variable with short description field.
please let me know if it does not help
Thanks,
Harshvardhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2017 05:02 AM
Have you taken a look at "help the Help Desk"? Help the Help Desk
Not sure if that is something you might want to use.
//Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2018 04:59 AM
Hi Rita,
You can retrieve the full user-agent information (as seen in the transaction log) by the following lines:
var userAgent = '' + gs.getSession().getProperty('user-agent');
or if that does work, try:
var userAgent = '' + GlideTransaction.get().getRequest().getHeader("user-agent");
Example of output:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"