function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sweta singh 58sweta singh 58 

login Flow - LoginFlow_UserAgent variable

Hi All,
Is there a way to trim and get the browser, so that to stamp it on User object.

Using 'LoginFlow_UserAgent' variable of Login Flow :- I am getting a Browser String. But end goal is to check if the browser used is 'Edge version 77' or greater. I know using "Contains" I can check which browser used . But in order to stamp it to a custom Browser field on User, I would need to Trim it and the browser string is not consistent.

I am getting below using different browsers:- 

Edge - Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36 Edg/80.0.361.48

Chrome - Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

IE - Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko

Thanks,
Sweta