The GetUserAgent function is a built-in function that returns the user agent, as indicated by the header of the HTTP (Stands for: Hyper Text Transfer Protocol) message. This function is only available within the expression editor.

Although this function can be used in any type of flows, it only returns significant values in Web Flows.

By calling the GetUserAgent function, it is possible to redirect end-users based on their browser versions. In the example below, end-users are redirected to a lightweight version of the application if they have an older browser.


Input parameters


Output parameters





Firefox 12

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0"IE9"


Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19

IE 8

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)

See Also

Available Miscellaneous Functions | Available Built-in Functions