logo

NJP

43. Generate random alpha-numeric String with the specified Length

Import · May 27, 2024 · article

Did you know that ServiceNow provides class “GlideSecureRandomUtil” for generating a random alpha-numeric String with the specified length ?

Example:

gs.info(GlideSecureRandomUtil.getSecureRandomString(12));

View original source

https://medium.com/@LearnITbyPrashant/44-generate-random-alpha-numeric-string-with-the-specified-length-a47dd9851542?source=rss-d005fc598f0a------2