How to get user's browser and operating system from record producer

ritaaudi
Tera Contributor

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!

12 REPLIES 12

HI Harsh: That worked for me too just using it in a business rule. Is there a property for operating system? Thank you!!


have you checked the thread that i have mentioned above?


as TrevorK has mentioned about "navigator.platform" property. you need to use that to get the OS information.



Thanks,


Harshvardhan


Yes, thank you both, but I can't use navigator.platform in business rule. What would I need to put in the property below if I want to look it up from the business rule:


gs.getSession().getProperty('xxxxx');


I am not sure if it's possible through that way or not.


but may i know why do you want to write business rule for getting browser and os version details.


If we can achieve it through catalog client script .



i tried with script below.



function onLoad() {


    //Type appropriate comment here, and begin script below


alert(navigator.userAgent);


}


rspd.png



User agent - Wikipedia



User agent strings are presented in different formats by the various browsers. To understand the user agent strings for each browser, view the browser documentation.



Hope it will help you.




Thanks,


Harshvardhan


Hi: Basically I have no need to display this info on the client side. I just need to save it on the incident custom fields I created. I went ahead and used the client script for the os. Thank you very much for your help!